Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi Ahmed,
I can confirm that Jira stores Draft workflows under the Inactive tab on the workflows page as described here.
This means that if you navigate to here in your instance then you will see any draft workflows not associated to any projects.
If there are no inactive workflows then this will indicate that you have no inactive draft workflows to be deleted inside of your instance.
If you need to delete a workflow still associated to a project then Jira will not allow this until you associate a new workflow to the project to make the workflow that you want to delete inactive.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristian,
Draft workflows are workflows copies created in edition mode. They are applicable for active and inactive ones.
Extract from the link provided : When you edit an active workflow, Jira first creates a draft of it, that you can then modify as you see fit.
Draft mode is also applicable for workflow scheme.
I found a method hasDraftWorkflow() wich returns true for some active workflows in my jira instance.
Thanks
Ahmed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmed,
Thank you for your response.
I do not know how the hasDraftWorkflow() method works and would advise for each worklow it returns true for to check if the draft workflows show in the Inactive section of the workflows page.
I believe by default the draft workflows will be given a name such as Copy of <WorkflowName>.
I hope this helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristian,
I found the solution :)
Use workflowManager.getDraftWorkflow(parentWorkflowName) to retrieve draft workflows.
Use workflowManager.deleteDraftWorkflow(parentWorkflowName) to delete them
Regards,
Ahmed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmed,
Thank you for confirming that you found the solution, I will note down this myself for future.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @[deleted]
Did you find a way to list out all draft workflows in the JIRA instance? Even the ones for which you dont know who is the parent workflow?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.