Versions Compared

Key

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

Use case

Return the display name of the last comment's author.

Expression

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

ExpressionDescription
Code Block
linenumberstrue
issue?.comments[issue?.comments?.length-1]?.author?.displayName || ""

This example returns the display name of the last comment's author.


 


Page properties
hiddentrue
Feature

Field typeSmart text field
Parsing mode

Jira expression

Expression
Code Block
linenumberstrue
issue?.comments[issue?.comments?.length-1]?.author?.displayName || ""
Label
Use case description

Return the display name of the last comment's author.

Complexity

Status
colourGreen
titleBeginner