Hello,
We are developing a plugin that can change via the user interface the workflow name (plugin available only for admins).
The problem after renaming the workflow, is that the issues are in an inconsistent state and those can not be transitioned anymore.
I'm using method
workflowManager.updateWorkflowNameAndDescription
After this, I am replacing the draft workflow
workflowManager.overwriteActiveWorkflow(currentUser,newWorkflowName);
and in the end update the workflow scheme
WorkflowSchemeManager workflowSchemeManager = ComponentAccessor.getWorkflowSchemeManager();
Iterable<AssignableWorkflowScheme> schemes = workflowSchemeManager.getAssignableSchemes();
for (AssignableWorkflowScheme scheme : schemes) {
workflowSchemeManager.updateSchemesForRenamedWorkflow(getWorkflowName(), newWorkflowName);
}
Even so, the issues can not be transitioned anymore;
I can not find another method to publish the changes, neither on the workflow or in the workflow scheme;
If there is any other known method that can do this, please provide some hints
Thank you
Mihaela