From memory, a scripted field that does something like
def allComments = CommentManager.getComment(issue)
gets you a list of all the comments. What I can't remember is how it is sorted, but if it is by Id of the comments, then just grabbing the last element from it (as lastcomment) should get the comment, then you can say
To put the text into a scripted field. You might also want to add lastComment.getAuthroFullName() and lastComment.getCreated(). (And have a think about looking at the last user to amend it instead of original author)
You should create a new custom field of type "scripted field", then go into Admin -> Scriptrunner -> scripted fields, and add a script to it.
That script should
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event