Forums

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

Retrieving Workflow Schemes via Rest API

Matias Stachowski
Contributor
April 17, 2018

Hello, I have been developing an Atlassian-Connect addon for Jira. (This means that I can only access the jira instance data via the rest api, as far as I know.)

Recently, I have come across a problem where I need to count the number of workflows that are active and inactive.

 

First, I tried to just use the GET /rest/api/2/workflow which fetches a list of all the workflows. However, the returned JSON does not specify whether the workflow is active or not.

Then I figured that if I could retrieve a list of all the workflow schemes, I could create a set of workflows from the workflows used by the workflow schemes, and subtract them from the list of all existing workflows, to get the number of inactive workflows, and from there get the number of active workflows too.

 

However, I cannot find any way to get the workflow schemes in a nice way. There seems to be no other REST API call that contains information about workflow scheme IDs, and there is no way to get a list of all workflow schemes. I can only retrieve workflow schemes from their respective ID, and I can only guess about what ID they have, for example I could get all IDs by guessing that there would be workflow schemes called 10100, 10101, 10102... but I don't think that it is a great solution.

 

So what is the good way to retrieve workflow schemes?

1 answer

1 vote
michael dejulia April 25, 2018

Also looking for the ability to retrieve a list of workflow schemes 

Benjamin Paz
Contributor
September 22, 2018

I'm looking to obtain the transition IDs in the workflows.

Deleted user February 10, 2019

It has almost been a year and there has been no response for this question.

Like Matias Stachowski likes this
CI User July 23, 2019

I am curious how long it would take for Atlassian to answer this because apparently there is no way to retried workflowscheme IDs but there is a way to delete them.

On the other hand you can retried workflows but you cannot delete them using REST API.

Apparently those implementing the REST API missed to cover the CRUD concept, most of the time at least one of the letters is missing.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events