Moving issue to current sprint via REST API

I am trying to use the Greenhopper REST API to move an issue from the product backlog into the current sprint. I am using:

/rest/greenhopper/latest/sprint/{sprintId}/issues/add; (the specific SprintId in this case is 5, so I am using "/rest/greenhopper/latest/sprint/5/issues/add" on my server)

I am doing an HTTPS PUT, and using the following content:

{"issuekeys":["SABO-232"]}

where "SABO-232" is the issue key.

I get a response of 204 with no content, however the issue does not get moved. I am using the API in other areas retrieving data and it works fine. And if I malform the data, I get a server error. It is accepting my data and doing nothing.

Any help?

1 answer

I got the format for the content from a precious question:

https://answers.atlassian.com/questions/82127/add-issue-to-greenhopper-sprint-using-rest-api

but it does not seem to work.

Also, I am doing this in perl and can supply a code snippet if desired.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 16 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

111 views 0 4
Read article

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