Extracting the last comment?

Hi,

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,

Christian


4 answers

1 accepted

This widget could not be displayed.

Hi Christian,

Release 2.5.3 has just been released.
You can access the First and the Last commens with the following notation:
${Comments[First].Field}
${Comments[Last].Field}

Examples:

${Comments[First].AuthorFullName}
${Comments[First].Body}
${Comments[Last].AuthorFullName}
${Comments[Last].Body}
Best Regards

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

This widget could not be displayed.

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?

This widget could not be displayed.

Hi,

many thanks for the quick solution.

Best regards,

Christian

This widget could not be displayed.

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 Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

511 views 3 18
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