Update status via REST API - not working

Darchele Webb April 18, 2016

I have successfully been able to test the REST API command via postman to update the assignee and get lists of issues; however, whenever I try to change the status via the transition id, I get an empty response and it doesn't do anything.  Below is an example of the body content in my PUT request.  Any ideas why it isn't working?

 

{    

"update": {        

"comment": [{ "add": {"body": "Applied Logic Deploy" } } ] },    

"transition": {         "id": "61"     }

}

1 answer

0 votes
Darchele Webb April 18, 2016

I got it... i was doing a PUT instead of a POST.

 

I tried the same thing with a C# webrequest object (not postman) and I get the error "405 method not allowed".  Any thoughts as to what I'm doing wrong?

Balaji R March 1, 2019

Any updates on this. 
Am also facing same 405 issue. 

try below from a REST TOOL


POST
https://XXX.com/rest/api/2/issue/XXX-30089/


{"fields":{"transition":{"id":"31"}}}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events