Last comment

JWT expression

%{issue.lastComment}

Jira expression

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 object, issue.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