Hi I am trying to use the rest api to get all the issues within a sprint.
I have got the sprint id from:
server:8080/rest/greenhopper/1.0/sprints/1
which returned {"id":4,"name":"Sprint 120132","closed":false}
using the sprint id as 4 I tried:
server:8080/rest/greenhopper/1.0/sprint/4/issues/list
But this is not correct.
Community moderators have prevented the ability to post new answers.
Hi,
First you need to get the rapidview ID for that sprint, here are the steps:
Hope it helps !
Omar
The sprintreport resource is the best I've found for this. However be aware that the lists of issues are in subsets: puntedIssues, completedIssues, etc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi. help me, please.
How to get a 'Issues Not Completed' in the sprints?
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.
In the returned JSON that the sprintreport returns, there's an "incompletedIssues" array, that should be helpful.
Also, for the Greenhopper REST API, this is the best resource I could find:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Omar, I was unable to get your route for sprints by rapid board to work. I checked the documentation and the route is actually rest/greenhopper/1.0/sprintquery/:myRapidBoardId where the segment value "sprintquery" differs from "sprints". Could be a version thing but at any rate in case anyone else is struggling with this hopefully my comment will help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @Andrew Sandefer, which documentation did you check? And @Omar, where do you get those knowledge about the greenhopper API from? I googled a lot and did not find a good documentation for using greenhopper rest api. Can you point me to somewhere?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kaiyu Zheng - go to https://jira.atlassian.com/plugins/servlet/restbrowser#/ and take a look at the API Browser. There are also several getting started articles as well that can be found at https://developer.atlassian.com/jiradev/ Thanks and good luck! Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andy, Thanks! I looked around in the api browser, but didn't find rules like rapid/charts/sprintreport?rapidViewId={rapidViewId}&sprintId={sprintID}. Can you, as an example, point me to where this rule is found? I really appreciate it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kaiyu Zheng Could you Please help me to get the all the sprints. I follwed the above steps i am able to get rapidviews. but with that is i am not getting the all the sprints. below is my output. rapid views::{"views":[{"id":1,"name":"Sample Scrum Project","canEdit":true,"sprintSupportEnabled":true,"showDaysInColumn":false},{"id":2,"name":"test","canEdit":true,"sprintSupportEnabled":true,"showDaysInColumn":false}]} All sprints::{"message":"null for uri: http://172.16.0.32:8080/rest/greenhopper/1.0/sprints/2","status-code":404}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've found that the easiest view of this is straight from the JIRA issues endpoint:
/rest/api/latest/search?jql=sprint%3D<SPRINT_ID>&fields=<FIELDS YOU WANT>&maxResults=<SOME REASONABLE LIMIT>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just for reference, this is the actual Greenhopper / JIRA agile API list: https://jira.atlassian.com/plugins/servlet/restbrowser#/search/greenhopper
I did not find a refence, meaning one with description of what each API does.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As far as I know, sprints are not project-specific as they can span multiple projects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aren't the sprints project related objects? They should be retrievable via projectkey.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.