Jira SW v7.13.1 (Server)
ScriptRunner Version: 6.2.1
In transition of some issue I'm cloning the issue in post-function ("Clones an issue, and links").
I need to move cloned issue to another status (different from Opened) during cloning.
I do it using "Additional issue action" and script:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.workflow.WorkflowTransitionUtil
import com.atlassian.jira.workflow.WorkflowTransitionUtilImpl
import com.atlassian.jira.issue.Issue
WorkflowTransitionUtil workflowTransitionUtil = (WorkflowTransitionUtil) JiraUtils.loadComponent(WorkflowTransitionUtilImpl.class);
workflowTransitionUtil.setIssue(issue);
// 21 - it is number of transition action
workflowTransitionUtil.setAction(21);
workflowTransitionUtil.validate();
workflowTransitionUtil.progress();
I receive the following error during running this script:
org.ofbiz.core.entity.GenericTransactionException: Commit failed, rollback previously requested by nested transaction.
It seems that you have tried to perform an illegal workflow operation.
If you think this message is wrong, please contact your Jira administrators.
What is incorrect?