The value of this read-only custom field is dynamically calculated from a custom mathematic or numeric expression.
It can be used to obtain a numeric value depending on the value of other fields in the current issue or in any other issues (linked issues, sub-tasks, epics, stories, JQL selected issues, etc).
Configuration
Configuring a Smart number field is straightforward. You have to configure a valid expression, which will "calculate" the output, and optionally define a custom display format.
Create a new Smart number custom field and name it properly.
Providing a description will help you to identify what the custom field does but this step is optional.
Math/Numeric expression
Add a valid parser expression that will "calculate" the output. Usually, field codes will be used for this purpose.
In order to use a JWT expression, choose General parsing mode:
%{issue.links.length} #This example simply returns the number of linked issues using a JWT expression
In order to use a Jira expression, choose the Jira expression parsing mode:
issue?.links?.length #Will return the same result if you are using a Jira expression
The result of the calculation must be a valid number. The field code used in this example can be found here: Number of linked issues
Display format
Optionally choose a custom display format. This is extremely useful to enhance usability for end users.
Read more about the available Display formats.
Use cases and examples
Use case |
---|
No content found. |