Hi,
I want to export bulk issue with "all comments" with author name to excel sheet, and i used scripted field with following script:
import com.atlassian.jira.component.ComponentAccessor
def comments = ComponentAccessor.commentManager.getComments(issue)
if (comments) {
comments.body
}It does the job, but it brings all the comments together in one line. Can someone please help to break each comments in to new line with author's name on the top of each comment?
I also tried to add the author name with following code:
comments.authorFullName
but it removes the comment and display only author's name.
Can someone please help me to achieve both (all comments with author's name) with clean format?