Forums

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

Get Transitions API call not returning all transitions

Tom Hudgins
Contributor
November 21, 2023

I'm trying to get the list of available transitions for an issue by calling

rest/api/3/<issuekey>/transitions

The issue in question has three transitions in its current status. Two of the transitions are to other statuses and one of the transitions loops back to the current status. In the API response I get the two transitions that go to other statuses but not the one that loops back to itself.

image.png

There are conditions on the looping transition but the conditions are met as I see the transition in the UI (under the Action menu) and I'm using the same user in the API as the Web UI. 

I guess there is something funky about "looping" transitions so is there some other way of finding these through the API?

1 answer

1 vote
Marc - Devoteam
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.
November 21, 2023

Hi @Tom Hudgins 

Are there conditions on this loop transition, if you you might need to add the property includeUnavailableTransitions in your API call.

Or does the transition have a hidden from user 

skipRemoteOnlyCondition can be added in the API call.

You can also call the transition id of the loop transitions, does this give a result?

If all of this is not the case, you might want to raise this at Atlassian, it might be that you found a bug.

Tom Hudgins
Contributor
November 21, 2023

Yes there are conditions and I did try the call with that query param - no joy.

If I send the id in the call, I get nothing.

Yep, I'll probably open a Support ticket with them - figured I'd try here first in case it was something someone else had run across.

Thanks for the reply

Like # people like this

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