Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,492
Community Members
 
Community Events
165
Community Groups

Error when changing transition of issue using JIRA REST API

I am working with an issue workflow with several states, and each state allows "All" states as the previous state. (Not much of a workflow, but that's what I'm working with.)

When fetching /rest/api/2/issue/<issue-id>/transitions on my issue, I get the list of all transitions in the workflow as expected.

However, when calling...

curl -i -X POST -H 'Content-Type: application/json' -d '{"transition": {"id":"21"}}' https://<my-instance>/rest/api/2/issue/<issue-id>/transitions

...I get the following error:

It seems that you have tried to perform a workflow operation (<my operation name>) that is not valid for the current state of this issue (<issue-id>). The likely cause is that somebody has changed the issue recently, please look at the issue history for details

I am able to perform this transition (and any transition) using the JIRA UI.

Is changing transitions using the jira rest api expected to work for workflows that have "All" nodes?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you