I'm attempting to show the last internal comment on a customer scripted field using Script Runner. I'm using the following script which returns the last comment, however it does not filter out external comments added via the portal. Is there a way to exclude external comments?
def commentManager = ComponentAccessor.getCommentManager()
def comment = commentManager.getLastComment (issue)
comment.body + " Author: " + comment.authorFullName
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
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events