How to update issue status edit api?

I am using '{issueIdOrKey}' to edit an issue. I want to use the same API to change the status as well. While following works in edit with PUT method,

        "issuetype" : {"name" : "Bug"},
		"summary": "Summary"
    "update": {
			"description": [{
				"set": "Hello description"

'transition' key doesn't work for me. I used it like this 

"transition": {
            "id": "1"}

directly inside the root JSONObject. Server returned with 204 status code but no change was done in Issue.

1 answer

1 vote

Is transition 1 representing a transition that exists in the workflow?  Is the issue in the right status?  (i.e. the transition is the one that takes it out of that status/step to the desired one?).  Does the workflow have any validators or conditions on it that might be blocking the transtion? (Although I'd expect an error there, rather than a simple 204)

Edit: sorry, that was far too short!  I've tried to improve it.

I tried values from 1 to 20 randomly.. None works. I mean I get a 204 No Content response but status doesn't change. To answer your question, 1 is valid.

Random numbers really aren't going to do anything!  Could you look at the text view of the workflow?  Especially for the step the issue is currently in?

Steven Behnke Community Champion May 26, 2016

Just a tidbit to add to Nic's great answer, you can use the API to get all transitions and ID's valid for your current state for a specific issue –

The documentation for this REST endpoint is avaliable here –


Otherwise Nic is right, the correct id value is in the Workflow Editor.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,723 views 17 21
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you