Forums

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

How to get Workflow Scheme ID via REST API

Bene P. September 13, 2021

Hi,

I currently try to automate the process of creating a jira project and I came along some difficulties finding out the ID of a workflow scheme.

I have seen that the cloud REST API is able to return a list of workflow schemes and their IDs, however this doesn't seem to be true for the server/datacenter version.

So my question is:

Is there any way to find out the ID of a workflow scheme by its name? 

I use jira version 8.18.2.

Any help would be appreciated.

1 answer

0 votes
Sunny Ape
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.
September 13, 2021

Hello @Bene P. 

If you're on Jira Server v8.18.2, then this is the documentation page for the REST API.

If you scroll down the page you will see the Get workflow scheme for project endpoint section.

Bene P. September 13, 2021

Hi @Sunny Ape 

thank you. I know this document. However the endpoint you are mentioning assumes that the workflow scheme already got assigned to a project, which is not the case for me. 

It seems like it's not possible at all to do something like:

GET /workflowscheme

After further investigation on existing endpoints I think it is not possible to do a full automation of the Jira Service Management (Server/Datacenter version). 

For example:

- It seems to be impossible to create workflows or even import existing ones via REST

- There is no way creating issue type screen schemes or screen schemes at all

- I see no way of modifying priorities

I was hoping to be able to create a project via REST with everything that belongs to it and, unfortunately this seems to be impossible with the server/datacenter version.

 

But thank you anyway. 

Sunny Ape
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.
September 13, 2021

@Bene P. 

This is one of those limitations of Jira Server / Datacentre being limited to the older v2 REST API only.

The ability to get workflows is dramatically better via the v3 REST API of Jira Cloud, where you can indeed do a

GET /rest/api/3/workflow/search


as well as create, manage and assign workflows and workflow schemes.

Bene P. September 15, 2021

Thanks @Sunny Ape 

Unfortunately we must use Jira Datacenter version, which is more an more a pain.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events