I want to delete workflow scrap data from jira cloud using groovy script with the help of rest api
Could anyone help me with api
Hi Prashant,
I see that you are looking to be able to delete inactive workflows using the REST API. To the best of my knowledge today, there is no Jira Cloud REST API that does exactly that. There is an existing feature request for this over in JRACLOUD-41356 - Deleting workflows through REST API.
While there are endpoints for deleting workflow schemes, such as DELETE /rest/api/2/workflowscheme/{id}, this is only for managing the schemes, and won't delete the unused workflows themselves from Jira. Sorry there is not a REST API solution available at this time. I would recommend watching and voting on that request. Should another work-around become available or if this feature is added to a future revision, that issue will be updated to reflect this.
That said, I came across a Scriptrunner solution that appears to be able to do this with a script, but this is not technically the REST API. Please see Petter's response on https://community.atlassian.com/t5/Jira-questions/Re-Is-there-a-way-to-bulk-delete-the-inactive-workflows/qaq-p/930471/comment-id/298513#M298513
I hope this helps.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.