The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to update state using API

Ramesh Ranganathan
September 25, 2020

HI All,

 

I am trying to update the issue state using API 

URL : https://xyz.atlassian.net/rest/api/2/issue/SER-14

method : put

body :


{
"fields": {
"priority": { "id": "3" }
}
}

but it's not updating properly and I am getting 204 response

Please guide how to update the state field.

Thanks

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
DPKJ
Community Champion
September 26, 2020

@Ramesh Ranganathan Welcome to the Atlassian Community.

Looking at your request body and response code, everything look fine. PUT method on issue api return 204 when it is successful.

Can you share response of GET API on same issue before and after updating priority?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events