Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

On this page


Field configuration

Before starting the field configuration, please follow the instructions for creating custom fields

Create a Custom Field

Step 1: Set a name and description

Provide a good name for the new custom field. Make it descriptive, concise, and easy to understand for others who will use it. Avoid using ambiguous or overly technical terms.

image-20240129-122910.png

Step 2: Add formula

The formula field facilitates custom calculations through:

  • Placeholders (e.g., {{fieldname}}) — Note that these are not Jira smart values.

  • Operators: addition (+), subtraction (-), multiplication (*), division (/), and parentheses (())

  • Number constants.

For instance, the formula ({{customfield_10342}} + 5) * 2 will be computed with the issues' field value of customfield_10342 (e.g. 8) to yield (8 + 5) * 2 = 26.

image-20240129-123952.png

There’s an autocomplete to add field placeholders. Just write “{{“ and see recommendations.

Note that the number of allowed placeholder values is limited to 5.

image-20240129-125233.png

Step 3: Setup output format, size and color based on value

The decimal toggle lets you switch between integer and up to two decimal places.

The field allows you to choose from a pre-defined set of field sizes.

You may also set different colors for different values.

image-20240129-123346.png

No edit mode

Values are derived from other issues' field values, and users cannot modify the calculation settings.

However, users can observe the calculation process. In this instance, the customfield_10342 (Advanced Number) with the value 8 is inserted into the formula.

image-20240129-132035.png

On the other hand, users receive hints in case of an error to understand what went wrong.

In this case, the value of customfield_10342 (Advanced Number) is unset (None), and therefore, it can't be used for a calculation.

image-20240129-132414.png

Not available in create issue

As you cannot edit the value manually, you can’t set it when creating a new issue. Better make sure it’s not displayed in the screen.

image-20240129-125846.png

Preview

image-20240129-125612.png


Related Use Cases

More use cases are coming soon. In the meantime, check out our other use cases.


Jira Service Management (JSM)

The Advanced Formula field is currently not available for Jira Service Management


JQL expression

The value is calculated just in time and saved as a field value, but there may be a delay in updating when a placeholder field value changes.

The sum field is an object type with a property Formula Result.

${fieldName}.Formula Result: number

Example: a search for all issues with a calculation result greater than 5

"Advanced Formula.Formula Result" > 5

Data Structure (Automation)

As the value is calculated, we don’t recommend to edit it manually or by automation!

To set the value via automation, you need the following object structure

{
  "value": number
}
  • No labels