Jira Agile rest API - Add/Remove issue to/from sprint

Hi everybody,

I have an issue with the jira agile rest api. I am trying to add/remove issues to/from sprints. In the past this was possible by calling

http://jira:8080/rest/greenhopper/1.0/sprint/1/issues/add

http://jira:8080/rest/greenhopper/1.0/sprint/1/issues/remove

When I try to call this URLs now I am getting an error message "null for...". By analyzing the requests in the web frontend of jira I figured out that there the following URL is used:

http://jira:8080/rest/greenhopper/1.0/sprint/rank

But with this URL I have problems when removing issues from a sprint. These are shown in the backlog again when opening the web frontend but the rest api returns them as still contained in the sprint by calling

http://jira:8080/rest/greenhopper/1.0/rapid/charts/sprintreport

What is the right way to manipulate sprints with Jira Agile?

Thanks in advance!

2 answers

This widget could not be displayed.

I analyzed this further and it came out, that obviously the sprint/rank endpoint is working quite fine. The problem is with the rapid/charts/sprintreport. This endpoint is not updated correctly after issues have been removed from a sprint. Maybe somebody can verify this as I would like to make sure that it is a bug before opening a Bug-ticket for it. Steps to reproduce:

1. Add an issue to a sprint via the greenhopper rest endpoints sprint/rank so that the sprint has an issue count > 1

2. query the current sprint report with the rapid/charts/sprintreport endpoint. The result should contain the current number of open issues in the "incompletedIssues" property

3. Remove the previously added issue from the sprint and query the sprintreport again. The result in my case is, that the sprint report still shows the removed issue as incomplete but still contained in the sprint.

Thanks!

This widget could not be displayed.

Hi talk

Can you please help me how did you remove issues from a sprint using sprint\rank api??

thanks in advance

arsh

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 New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

139 views 2 0
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