The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the workflow ID

Robert Egan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 18, 2022

Attempting to use the REST API for workflows and workflow schemes, and I cannot figure out where to get the ID. It is not returned from the get all API, and it is not the database id.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Adrien Low _ServiceRocket_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 18, 2022

Hello @Robert Egan ,

Can you please elaborate further as to which API you are referring to and what are your expected results?

If you are referring to api/2/workflow, the bug tickets below may provide some insight to your issue:-

The APIs may not work as you expect it to be.

As for workflow scheme ID, you should be able to get it from the URL while viewing the workflow scheme.

For example, if the URL is http://localhost:8080/secure/admin/EditWorkflowScheme.jspa?schemeId=10200, the workflowschemeid is 10200.

Hope this helps.

Regards.

Robert Egan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 18, 2022

Not really. I have a need to 'grep' the contents of every workflow for occurrences of strings. I would very much like to get all workflows, and then iterate through that data set. To give you a feel for what I mean, my current workaround is:

psql -d jiradb -c "select descriptor from jiraworkflows;" | <java code here> : 

 which suffers from many drawbacks. It's a shame there is no REST API for this.

Robert Egan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 22, 2022

I have decided to write my own REST API.