Hello, everyone,
I'm trying to create a new empty workflow with a scriptrunner groovy script to automate the project creation process. Trying to emulate the workflow from admin ui. However, I can't find the right methods in the Jira API documentation under the WorkflowManager.
I can make a copy of the standard workflow using WorkflowManager.copyWorkflow() but it will not be empty and i'm not able to delete the existing steps. In the UI I can click the button "Add workflow" and get an empty workflow to which I can add steps one by one. How do I implement this via the API?
Can someone give me a rough overview over the related concepts and how I solve this with the API? The following points are the most important ones:
1.) create an empty workflow
2) add existing steps, status and actions
3) create workflow scheme
4) assign workflow to scheme
5) assign scheme to project
best regards
René
This is not an answer. I just want to say that I am searching for the same thing
Creating a workflow from scratch is a monolithically complicated thing to do.
Steps 3 and 4 are easy to do in SR, but I strongly recommend that you don't go down the route of using SR to create workflows - you're looking at thousands of lines of code. And for 5, don't try to replicate all the migration code you'd need to do.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.