Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Can I get the last comment of an issue in the Builtin Script Listener Email template from a specific user?

Can I get the last comment of an issue in the Builtin Script Listener Email template from a specific user?

Deleted user
November 17, 2016

I was just wondering, but coulnd't find an answer:

Can I get the last added comment in the email template of the Builtin Script Listener from a specific user?

 

i currently have this code: 

 

componentManager.getCommentManager().getComments(issue).last().body

 

many thanks 

Pon

1 answer

0 votes
Deleted user
November 17, 2016

Heres the current code i have that is pulling only the most recent comment but i am unable to specify the user: 

<% out << cfValues['Email Body - Full'] %>

<% if (mostRecentComment != null)    
   out << "-----Response Message-----" << "\n" << "\n" << mostRecentComment
%>

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events