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 edited

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
TAGS
atlassian, mindful member, mindful member badge, atlassian community, community kudos, community giveaway, atlassian swag, community values, empathy and kindness, badge challenge, atlassian learning, community engagement, swag giveaway

Earn a Badge, Win a Prize 🎁

Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!

Start here
AUG Leaders

Atlassian Community Events