Extracting the last comment?


currently I'm testing the trial version v2.5.1 of the XPorter plugin. I'd like to extract the last comment.

${Subtasks[n].Comments[0].Body} works, of course, for the first comment, ${Subtasks[n].Comments[1].Body} for the second and so on. However, extracting the last comment with ${Subtasks[n].Comments[Last].Body} does not work. Also the expression ${Subtasks[n].Comments[${Subtasks[n].CommentsCount}-1].Body} does not the job, whereas ${Subtasks[n].CommentsCount} in fact gives the correct number of comments. I have also been trying to evaluate a Javascript %{...}, but unfortunately without success. Could somebody help me?

Best regards,


4 answers

1 accepted

0 votes
Answer accepted

Hi Christian,

Release 2.5.3 has just been released.
You can access the First and the Last commens with the following notation:


Best Regards

Hi, Can we customize how much of the last comment we can extract? Thanks, Gaj

Hi Christian,

Currently it is not possible to do what you want.

It will be possible for the next release, which will be available during the next week. We will update this thread once it is available.

Best Regards

so how do you do this is current version of cloud?


many thanks for the quick solution.

Best regards,


where is the "last comment" field in the On-Demand version of JIRA??

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


246 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you