Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

Use case

Return the first comment of the current issue.

Expression

Create and configure a Smart field using this expression in Jira expression parsing mode:

ExpressionDescription
Code Block
linenumberstrue
issue?.comments[0]?.body?.plainText
UI Text Box
typeinfo

The text will be returned using wiki markup, e.g. bold text will be shown as *bold text*.

This example returns the first comment of the current issue.



Page properties
hiddentrue
Feature

Field typeSmart text field
Parsing mode

Jira expression

Expression
Code Block
linenumberstrue
issue?.comments[0]?.body?.plainText
UI Text Box
typeinfo

The text will be returned using wiki markup, e.g. bold text will be shown as *bold text*.

Label
Use case description

Return the first comment of the current issue.

Complexity

Status
colourGreen
titleBeginner