Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×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')
{
}
Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.
Register Now
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.