change status field on an issue

Hello , how can i change the status of a parent issue from your rest api???

1 answer

0 votes

In order to change a status of an issue in Jira, you would have to execute a transition on that issue.  You can do that via the REST API, there is a reference as to the endpoint you would need to call in https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-doTransition

The transition information needed will depend on the workflow for that issue.  So you would likely need to call the getTransitions endpoint to understand what valid transitions exist for that state.

However, within the native Jira code, I do not believe there is a way for you to make a REST call to a subtask issue in order to force the parent issue to run this transition.

How can i find the workflow that this issue belong??

and

How can i get all the steps of a workflow??

The GET /rest/api/2/issue/{issueIdOrKey}/transitions endpoint is only going to show you the transitions that are currently available for that issue based on its current status and the workflow that is bound to that issuetype.

To the best of my knowledge, I don't think there is a way to use the REST API to call up the specific workflow that this issue type is using.  It would be possible to open the issue in the Jira web UI, from there you can click the link for "View Workflow".  This is one way to determine what workflow that issuetype is using.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,009 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot