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