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

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?

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events