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.debug("inside")
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);
}
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: https://developer.atlassian.com/static/javadoc/jira/reference/com/atlassian/jira/event/issue/IssueEventManager.html you can see alternatives.
So you'll need to adapt your Groovy Script.
Cheers,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.