Hi All,
I wanted to display last comment of ticket in JQL search, it is reflecting latest comment but attachment is not reflecting.
It is reflecting attachment like below in JQL display
!Attachment_1.png!
.
Here is the code I am using
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.issue.comments.Comment
import com.atlassian.jira.issue.comments.CommentManager
import com.atlassian.jira.component.ComponentAccessor
def commentManager = ComponentAccessor.getCommentManager()
def comment = commentManager.getLastComment (issue)
comment.body + "\n" + "Author: " + comment.authorFullName
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.