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
Community showcase
Published Sunday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

108 views 0 7
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