Forums

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

hi - Does anyone has any idea on how can I pull out username who had commented on 'last comment' in

sasikala Malli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2021

I want to pull out a report on ticket description/summary along with last comment and user who has commented this. I can pull out last comment but do not know on how to pull the user name/id who has made this last comment. Appreciate any help on this

1 answer

1 accepted

1 vote
Answer accepted
Kristján Geir Mathiesen
Community Champion
February 16, 2021

Hi @sasikala Malli 

Maybe using:

$!issue.reporterUser.displayName

 

And this code loops through all the comments, listing up the name of the commentator:

#set ($issueComments = $allComments.getComments($issue))
#foreach($comment in $issueComments)
$comment.getAuthorFullName() wrote:
$comment.getBody()
#end 

HTH,
KGM 

Suggest an answer

Log in or Sign up to answer