Hi All,
I'm trying pull all JIRA comments to a scripted field using scriptrunner.
I'm able to pull all comments but they are not in a sequence. How can we break each comment by author name?
import com.atlassian.jira.ComponentManager
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.getComments (issue)
return (comment?.authorFullName + comment?.body)
TIA!!