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 Leaders.
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

0 votes
Adrien Low _ServiceRocket_
Community Champion
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 Leaders.
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 Leaders.
February 22, 2022

I have decided to write my own REST API.

Suggest an answer

Log in or Sign up to answer