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()
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.