Hi,
I would like to have a customer field that showed 'date of last comment'-'last comment' for example:
10/08 - this is the last comment
I'm using script runner and can get the last comment but how do you add the date of the last comment at the beginnning of the field?
Thanks
Kevin
Currnet script:
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.getLastComment (issue)
comment.body