Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Info
titleGetting help

Please visit our Support Page for more information.

...

The formula itself is a Java-style expression that can reference the value returned by the formula using the value variable. You can also use the numberTool object to format the number value:

Code Block
numberTool.format(value)

Example

To display an icon to the left of the field value depending on the field value:

...

If you don't specify anything, the last execution will be captured.

Custom formatting

You can also specify a date/time format for the value of the Calculated Date/Time field. In the Description field, add the name of the date/time format using the following syntax:

Code Block
<!-- @@Format: <format_name> -->

where <format_name> is one of the constants found here: https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/datetime/DateTimeStyle.html

...