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

Compare with Current View Page History

« Previous Version 15 Next »

The value of this read-only custom field is dynamically calculated from a custom text expression. It can be used to show a text which aggregates information from one or more field values returned by field codes.

You can also create any custom text value depending on the values 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.

Expression
{issue.links.length} #This example simply returns the number of linked issues using a JWT expression
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