Last comment

JWT expression

Field code
%{issue.lastComment}

Jira expression

Field code
issue?.comments != [] ? issue?.comments[issue?.comments?.length-1].body?.plainText : null

Comments are stored in lists. Documentation on how to work with lists can be found here.

You can access the whole comment by issue.comments[0] which returns an objectissue.comments will return a list of objects.

Read

Returned value

The last comment entered in the issue

Output data type

text

Example output

Take your Jira to the next level by using JWT for Jira Cloud