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

sasikala Malli 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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