Forums

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

How do I update/change the status on an issue with the REST API (NODE JS)?

Mack Carr January 22, 2019

My issue is labelled as TEST-13 and I cannot find a way to make my app update with a Node JS Request. So far I could not do it properly. I don't know what to put into my body to make it work

 

What do I do to update/change the status of an issue or how do I format/word the body aspect of my request??

2 answers

0 votes
Warren
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 23, 2019

Hi Mackinlay

I use a POST call on 

/rest/api/3/issue/key/transitions?expand=transitions.fields&transitionId=141

with a body like this

{"update":{},"transition":{"id":"141"}}

I'm can't remember how I got the transition id, hopefully you know yours

Mack Carr January 25, 2019

The POST call you showed me is one that gets me the transition id. When I put in the body you showed me, it returns an error so I was wondering if you might be able to show me a call that will update the issue.

 

I really appreciate what you posted, it really helped me. Thank you. If you could keep helping me that would be fantastic.

0 votes
Mack Carr January 22, 2019

I have been using postman to help me do this stuff so maybe someone could show me a html request that works as well for it

Mack Carr January 22, 2019

I really need to know what to put into body

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events