The variable "mostRecentComment
" seems to have been designed for email notification, however we would like to be able to display the most recent comment in a multi-line text field. Is it possible?
This could be the code of a scripted field:
import com.atlassian.jira.component.ComponentAccessor def commentManager = ComponentAccessor.getCommentManager() def comments = commentManager.getComments(issue) comments ? comments.last().body : null
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.