Hello All,
I am using below script in the email template to get last comment.
Last Comment: <% (transientVars?.comment)
out << transientVars.comment
%>
But how can include all comments in the custom email with comment created date and time?
How can i add last attachment in the email?
Thanks in advance,
Mani
Hi
I think you can get collection with attachments from com.atlassian.jira.issue.Issue interface, there is a method
Collection<Attachment> getAttachments()
Considering comments, have you tried com.atlassian.jira.issue.comments.CommentManager and com.atlassian.jira.issue.comments.Comment interfaces?
There are methods:
In CommentManager:
List<Comment> getComments(Issue issue)
This will return all comments for a given issue.
In Comment
Date getCreated()
Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!
Help us plant more trees
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.