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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.