workflow information with api call

nico2610 September 27, 2019

Hello,

I have a workflow called "my project US workflow" (with space) and I would like to get all information about transitions (name, transition, post function) with REST API.

I tried to use the Get Workflows Paginated feature but I got a http 400 :

curl -k -Ss -u 'user:pass' --header 'Accept: application/json' "https://myjiraserver.com/api/2/workflow/search?workflowName=my project Rewire workflow" 

Jira v8.1.0 and  I'm admin of the jira instance

Have I used the right API feature ? If yes , what's wrong with my request ? 

 

Thanks in advance

1 answer

0 votes
fran garcia gomera
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 27, 2019

syntax is without the word "search"

https://myjiraserver.com/api/2/workflow?workflowName=my project Rewire workflow 

but it only returns this info

{ "name": "xxxxxxxx", "description": "", "lastModifiedDate": "26/dic/18 1:41 PM", "lastModifiedUser": "yyyyyy", "steps": 2, "default": false}

nico2610 September 27, 2019
fran garcia gomera
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 27, 2019

using jira cloud or server?

seems that syntax is only for cloud.

Like nico2610 likes this
nico2610 September 27, 2019

I'm using jira server. I didn't noticed that there is a difference between cloud and server API. Thanks for the information !

Suggest an answer

Log in or Sign up to answer