Forums

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

How to add search option to Jira Rest API rest/api/2/issue/issue.key/transitions?

erika_zanoni February 3, 2021

Hi,

I'm doing this Curl and I get back all the possible workflow's transition for an issue

curl --request GET \
--url 'https://xxxxxxxx/rest/api/2/issue/XXX-ZZZ/transitions' \
-H "XXXXXXXXXXXXXXX" \
--header 'Accept: application/json'

It Works.

But my need is to add a Search option or something like this to this Rest API, in the specific case, I need to add a search by name of the transition, like this: 

'https://xxxxxxxx/rest/api/2/issue/XXX-ZZZ/transitions/search?name=Transition_Name' 

*THIS IS AN EXAMPLE OF WHAT I NEED, IT DOESEN'T WORK*

In this way I want to get back only the information of the transition with the specific name 

 

Is that possible? I don't find anything on the jira documentation, there is a way to do what I write?

 

Thanks

 

P.S: I'm using Jira cloud, premium version

1 answer

0 votes
Sandesh Shetty
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 3, 2021

@erika_zanoni 

You can add transition id as the query parameter

'https://xxxxxxxx/rest/api/2/issue/XXX-ZZZ/transitions?transitionId=your_transition_id" 

erika_zanoni February 3, 2021

Okay thanks, only the transition id I can check? no the transition name?

Sandesh Shetty
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 3, 2021

yeah, only transition id

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events