groovy script is not working in upgraded 6.3.13 while the same was working on jira 3.13 version

We are getting  getting following error in logs while we are trying to run a groovy script.


groovy.lang.MissingMethodException: No signature of method: static com.atlassian.jira.event.issue.IssueEventManager.dispatchEvent() is applicable for argument types: (java.lang.Long, com.atlassian.jira.issue.IssueImpl, com.atlassian.jira.crowd.embedded.ofbiz.OfBizUser, null, null, null, java.util.HashMap, java.lang.Boolean) values: [10879, NEWLTA-347, sethuraj:3, null, null, null, [eventsource:workflow], ...]



code we are using is as follows:

if(business.value == 'ABSA'){
log.error("inside ABSA Business")
//IssueEventManager.dispatchEvent(10877, updatedIssue,
Long eventId = 10879
IssueEventManager.dispatchEvent(eventId, updatedIssue, ManagerFactory.getWorkflowManager().getRemoteUser(transientVars),comment, null, changeGroup, params, true);
//IssueEventManager.dispatchEvent(10879, updatedIssue, appUser.getDirectoryUser(),comment, null, changeGroup, params, true);


1 answer

A lot has changed between JIRA 3.13 and JIRA 6.3.13 and that class has changed with it.

The error is pretty clear : the method no longer exists.

And if you take a look here: you can see alternatives.

So you'll need to adapt your Groovy Script.



Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,965 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot