Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to export ONLY the latest\Last comment within Bug issue type

shawkat ali May 6, 2022

Hi,

I would like to export only the latest\Last comment from bug issue type into MS word.

It is possible to export all comments from bug issues into MS word i.e.

#{for c = TestRuns[a].ExecutionDefects[d].CommentsCount}

${wiki:TestRuns[a].ExecutionDefects[d].Comments[c].Body}

 

However I have requirement to export only the latest\Last comment from bugs linked to test cases within test execution.

 

I'm using:- 

Jira Xray Cloud

Document GeneratorSS1.PNG

2 answers

1 accepted

0 votes
Answer accepted
shawkat ali May 10, 2022

Actually this can be done by using the Last word instead of the variable count.

Example:-

${wiki:TestRuns[a].ExecutionDefects[d].Comments[Last].Body}
0 votes
CJ Edwards
Contributor
May 6, 2022

A fast and dirty Scripted custom field that is "Last Comment" has been useful for me in the past.

Perhaps could be of value here as well?

shawkat ali May 6, 2022

Hi CJ,

thanks for your suggestion. However its not quite clear to me - your suggestion. Is it possible to provide an example. This would be of great help.

Suggest an answer

Log in or Sign up to answer