Is there a way to distinguish between IssueCommented, Issue Comment edited and Issue Comment deleted in scriptrunner.
Please find the attached image, I am exactly trying to do the same thing to distinguish between these 3 events in my inline code. I know the event exists for the comments but trying to find a way to distinguish them.
Below image is from adaptavist, I am trying to do something similar.
I was able to figure out -
def issueEventObject = event as IssueEvent
def eventTypeManager = ComponentAccessor.eventTypeManager
def eventType = eventTypeManager.getEventType(issueEventObject.getEventTypeId())
if(eventType.name == 'Issue Commented')
{
}else if(eventType.name == 'Issue Comment Edited')
{
}
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.