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.
In order to use a JWT expression, choose the General parsing mode:
This is the last comment: %{issue.lastComment} # This example simply returns the last comment added to an issue using a JWT expression.
In order to use a Jira expression, choose the Jira expression parsing mode:
"This is the last comment: "+ (issue?.comments != [] ? issue?.comments[issue?.comments?.length-1].body?.plainText : "") // 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
Use case |
---|
No content found. |