Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added

UI Text Box
sizemedium
typeinfo

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.


UI Steps


UI Step

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

UI Text Box
typetip

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



UI Step

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 General parsing mode:

Code Block
languagebash
titleExpression
linenumberstrue
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:

Code Block
languagebash
titleExpression
linenumberstrue
"This is the last comment: "+ (issue?.comments != [] ? issue?.comments[issue?.comments?.length-1].body?.plainText : "") // Will return the same using a Jira expression.


UI Text Box
typetip

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




Use cases and examples

Page properties report
firstcolumnUse case
headingsBuilt-in, Parsing mode, Expression
sortByTitle
cqllabel = "use-case-smart-text" and space = currentSpace() and ancestor = currentContent()