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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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