I am trying to trigger a custom event from my groovy script.
IssueEventManager.dispatchEvent(new Long(10001),x,ManagerFactory.getWorkflowManager().getCaller(transientVars),true);
I am getting this error
groovy.lang.MissingMethodException: No signature of method: com.atlassian.jira.workflow.OSWorkflowManager.getCaller() is applicable for argument types: (java.util.HashMap) values: [[createdStep:SimpleStep@11[owner=, actionId=0, status=Open], ...]]
Can anyone provide me a working snippet of how to trigger a custom event programatically