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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

177 views 18 7
Join discussion

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