Forums

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

REST API to update Sprint doesn't work

Jirong Hu
Contributor
October 23, 2019

The REST API to update the Sprint doesn't response at all. Any idea why?

https://developer.atlassian.com/cloud/jira/software/rest/#api-rest-agile-1-0-sprint-sprintId-put

C:\DevOps>curl --insecure -u "jironghu:jironghu" -X GET https://abc.com/rest/agile/latest/sprint/12145
{"id":12145,"self":"https://abc.com/rest/agile/1.0/sprint/12145","state":"future","name":"Lab 1 - Legacy Sprint","originBoardId":283,"goal":"Goal"}
C:\DevOps>curl --insecure --request POST --url "https://abc.com/rest/agile/latest/sprint/12145" --user "jironghu:jironghu" --header "Accept:application/json" --header 'Content-Type:application/json' --data '{"state":"active"}'

C:\DevOps>curl --insecure -u "jironghu:jironghu" -X GET https://abc.com/rest/agile/latest/sprint/12145
{"id":12145,"self":"https://abc.com/rest/agile/1.0/sprint/12145","state":"future","name":"Lab 1 - Legacy Sprint","originBoardId":283,"goal":"Goal"}
C:\DevOps>

 

1 answer

1 accepted

0 votes
Answer accepted
Aleksandr Zuevich
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.
October 24, 2019

Hi @Jirong Hu ,

Try this:

curl --insecure --request POST --url "https://abc.com/rest/agile/latest/sprint/12145" --user "jironghu:jironghu" --header "Accept:application/json" --header "Content-Type:application/json" --data "{\"state\":\"active\"}"
Jirong Hu
Contributor
October 25, 2019

It works, thank you so much!

Suggest an answer

Log in or Sign up to answer