Forums

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

I am unable to change the Status through API

Venkata Sagar Ganesh Rao Mahendrakar December 6, 2022

Hello 

When i am trying to change the status from Resolved to Reopen in Jira through API(POSTMAN) . I am getting below error response. Can someone please help me 

{
"errorMessages": [],
"errors": {
"status": "Field 'status' cannot be set. It is not on the appropriate screen, or unknown."
}
}

1 answer

0 votes
Alex Koxaras -Relational-
Community Champion
December 6, 2022

Hi @Venkata Sagar Ganesh Rao Mahendrakar 

Which request are you trying to send? Just to change the Status field? I think what you are looking for is to transition the issue.

Venkata Sagar Ganesh Rao Mahendrakar December 7, 2022

Hi @Alex Koxaras -Relational- 

Thank you for the quick reply!!

Yes, we need to transition the issue from Resolved to Reopen.

Could you please help me!!

Thanks

Sagar 

Like Justin N likes this
Alex Koxaras -Relational-
Community Champion
December 7, 2022

If the above, which is for cloud, doesn't work then use the following:

/rest/api/2/issue/ISSUE_ID/transitions

Replace the ISSUE_ID with the eerr... issue id.

Venkata Sagar Ganesh Rao Mahendrakar December 7, 2022

Hi @Alex Koxaras -Relational- 

Thank you for the Reply!!

We are using Jira Server not Cloud

Thanks

Sagar

Alex Koxaras -Relational-
Community Champion
December 8, 2022

Then use the other one I gave you:

/rest/api/2/issue/ISSUE_ID/transitions
Venkata Sagar Ganesh Rao Mahendrakar December 8, 2022

Hi @Alex Koxaras -Relational- 

Thank you for the Response!!

We are Using the same above one with below body in Postman

{
"fields": {
"status": {
"self": "https://***/rest/api/2/status/4",
"description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.",
"iconUrl": "https://***/images/icons/statuses/reopened.png",
"name": "Reopened",
"id": "4",
"statusCategory": {
"self": "https://***/rest/api/2/statuscategory/2",
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
}
}
}

We are getting below Response :

{
"errorMessages": [
"Missing 'transition' identifier"
],
"errors": {}
}

we tried to include transition  in the request of body ,but we are getting 500 internal error

Could you please help me

Thanks 

Sagar

Venkata Sagar Ganesh Rao Mahendrakar December 11, 2022

Hi @Alex Koxaras -Relational- 

Could you please help 

Thanks 

Suggest an answer

Log in or Sign up to answer