You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I need to create a plugin that should call a REST API. Based on the response from the API, want to change the work flow state.
You need to need into the following REST API.
api/2/issue/{issueIdOrKey}/transitions
The GET Method of this api takes issue key and retruns all the possible tranistions from the current state to future state.
So lets say an issue is "In Progress" state and can go to "Resolved" and "Closed" from here.
So the GET method would return resolved and closed along with their Ids and other information.
Then you would make a POST request to your issue to update its status.
Note: If there are some mandatory fields on issue screens on any of the transistions, they would need to be provided as well.
e.g.
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}
]
},
"transition": {
"id": "51"
} }
}
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.