Transition parent when sub-task is transitioned script is failing after upgrade of Jira to 9.4.1
here is my script
The error message says that workflowTransitionUtil object is null, meaning that the component is not being loaded correctly. This can be due to changes in the Jira API before the version 9.4.1. I am not sure but could you please try below solution?
Instead of this
def workflowTransitionUtil = ComponentAccessor.getComponent(WorkflowTransitionUtilImpl.class)
use this
WorkflowTransitionUtil workflowTransitionUtil = ComponentAccessor.getWorkflowTransitionUtil()
I hope it helps
Hi
Thanks for your response
i change the code but still its failing the error now I got
023-02-07 05:12:53,601 ERROR [workflow.AbstractScriptWorkflowFunction]: Workflow script has failed on issue MTP-484 for user 'srjag'. View here: https://jira-preprod.nets.no/secure/admin/workflows/ViewWorkflowTransition.jspa?workflowMode=live&workflowName=New+MS+TMS+Task+%26+Sub+Task+Workflow&descriptorTab=postfunctions&workflowTransition=141&highlight=3
groovy.lang.MissingMethodException: No signature of method: static com.atlassian.jira.component.ComponentAccessor.getWorkflowTransitionUtil() is applicable for argument types: () values: []
at Script11.run(Script11.groovy:13)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.