I'm trying desperately to get a list of issues per sprint using the JIRA Agile REST API according to the documentation here: https://docs.atlassian.com/greenhopper/REST/latest/.
Using Postman in Chrome, I'm able to access most information correctly, such as which boards I have, which sprints exist per board, except when I try to access the actual issues in the backlog or per sprint, I keep getting 404 errors.
Here's the endpoint I'm using with Basic Auth:
https://[mysubdomain].atlassian.net/rest/agile/latest/board/1/sprint/3/issue.json
Here's the response:
{ "message": "null for uri: https://[mysubdomain].atlassian.net/rest/agile/latest/board/1/sprint/3/issue", "status-code": 404 }
I know the docs say all those endpoints are experimental, but I want to make sure first that I'm not doing something obviously wrong before assuming it's due to its experimental status.
Thanks for any help or guidance!
Community moderators have prevented the ability to post new answers.
According to this Answer, this should show you the issues for the Sprint as you have its ID:
/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId={rapidViewId}&sprintId={sprintID}
You should be able to also do this by simply searching using JQL using the Sprint ID. For example, you can search in the issue navigator:
Sprint = 10
So you could simply use the search endpoint (https://docs.atlassian.com/jira/REST/6.4.6/#api/2/search-search):
http://my-jira-server:8080/jira/rest/api/2/search?jql=Sprint=10
This should return all issues that belong to that sprint.
Cheers,
Matheus
Thank you, Matheus! That was the simplest answer I've gotten thus far out of everything I've read. However, I can't wait until those other endpoints will be working, since they make much more sense for this use case.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.