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

Compare with Current View Page History

« Previous Version 11 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 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} #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