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

Compare with Current View Page History

« Previous Version 8 Next »

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 text field is straightforward. You have to configure a valid expression, which will "calculate" the output.

Create a new Smart text custom field and name it properly.

Providing a description will help you to identify what the custom field does but this step is optional.

Text expression

Add a valid parser expression that will "calculate" the output.

Usually, field codes will be used for this purpose.

Expression
This is the last comment: %{issue.lastComment.author} #This example simply returns the last comment added to an issue using a JWT expression.
This is the last comment: issue?.comments != [] ? issue?.comments[issue?.comments?.length-1].body?.plainText : null #Will return the same using a Jira expression.

The field code used in this example can be found here: Last comment

Use cases and examples