I want to change the status from closed to open. I think this should be called transition.
How can I add a transition? I am getting confused about the actual Jira workflow.
I only want to be able to open a request if it has been closed using REST.
GET /rest/api/2/issue/:issueIdOrKey/transitions?expand=transitions.fields
POST /rest/api/2/issue/JC-11/transitions?expand=transitions.fields
BODY:
{
"update": {
"comment": [
{
"add": {
"body": "Comment added when resolving issue"
}
}
]
},
"transition": {
"id": "5"
}
}
To change the transition
Sorry, I have a mental fog right now.
i've seen this post on a discussion
to change status from Resolved to Closed it uses transition: id=701. I believe that it's very inflexible because Salesforce has api call limits and I wanted to avoid GET request before POST request. But now I see that it's impossible. I must at first perform GET request and when POST request.