At the company I work we have many issue types and every issue type has different states, but all of the issue types have final states (closed). I would like to know if there is an endpoint that I can use to check if a ticket is in a closed or open state.
Get the issue with a call to
https://foobar.atlassian.net/rest/api/2/issue/FOO-123
and check the "statusCategory" embedded object:
"status": {
"self": "https://foobar.atlassian.net/rest/api/2/status/10049",
"description": "",
"iconUrl": "https://foobar.atlassian.net/",
"name": "Done",
"id": "10049",
"statusCategory": {
"self": "https://midori-global.atlassian.net/rest/api/2/statuscategory/3",
"id": 3,
"key": "done",
"colorName": "green",
"name": "Done"
}
// ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.