Hi,
is there any api to get Sprint details with board name ??
our requirement is, users will enter board name/s on subtasks and we need get board names from all the subtasks under the issue and need to display the active sprint details from each board on parent issue viewscreen!
Thanks,
Hi Rambanam,
Thank you for your question.
First you need to get the rapidview ID for that sprint, here are the steps:
Here is the add-on (JIRA Agile) to the REST API requests to work:
https://marketplace.atlassian.com/plugins/com.pyxis.greenhopper.jira
The information above mentioned has been extracted from https://answers.atlassian.com/questions/133844/greenhopper-rest-api-listing-all-issues-in-a-sprint
Kind regards,
Rafael
Thanks for your answer!! i am aware about agile rest api but i am looking for core api of jira agile
i have to get sprint details from scrum boad name!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not able to list the sprints using:
/rest/greenhopper/1.0/sprints/{rapidViewId}
I get:
<status><script>(function(){(function r() { function e(e) { var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = document.createEvent("CustomEvent"); n.initCustomEvent(e + "-gr", !0, !0, t), document.dispatchEvent(n); } function t(e, t) { var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 10; if (e) { for (;e && e !== document.body && !t(e) && n > 0; ) e = e.parentElement, n--; return e && t(e); } } function n(e) { return t(e, function(e) { return e.classList && (e.classList.contains("inline-edit-fields") || e.classList.contains("editable-field")); }); } function r(e) { return "function" == typeof e.matches && e.matches("grammarly-card, grammarly-card *,.gr-top-zero, .gr-top-zero *,[class*=-gButtonPopup], [class*=-gButtonPopup] *,[class*=-onboardingDialog], [class*=-onboardingDialog] *"); } function o(e, t) { var n = t && t.getAttribute("data-action"); "editor" !== n && "login" !== n && e.focus(); } function i(e) { var t = e.target, i = e.relatedTarget || e.explicitOriginalTarget || document.elementFromPoint(a, s); i && t && n(t) && r(i) && (e.stopImmediatePropagation(), o(t, i)); } var a = 0, s = 0; document.addEventListener("blur", i, !0), document.addEventListener("DOMContentLoaded", function() { function t() { return "jira" === document.body.id && document.body.getAttribute("data-version") || document.querySelector("input[type=hidden][title=JiraVersion]"); } t() ? (e("jira-inline-support", { activated: !0 }), document.addEventListener("mousemove", function(e) { a = e.clientX, s = e.clientY; }, !0)) : (e("jira-inline-support", { activated: !1 }), document.removeEventListener("blur", i, !0)); }); })() })()</script><status-code>404</status-code><message>null for uri: https://stalkbuylove.atlassian.net/rest/greenhopper/1.0/sprints</message></status>
What is wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rafael: Thanks. I am using https://domain.atlassian.net/rest/greenhopper/1.0/rapid/charts/velocity.json?rapidViewId=<boardId) to get the JSON data for all sprints in the given board. Is there any limit on how many sprints are returned in the response? I don't see any sprints that were active before 1/1/2019.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The REST signatures have evolved a bit. Let's "fix" Rafael's statement :
First you need to get the rapidview ID for that sprint, here are the steps:
Additionally, you can get the detail of a rapidview : /rest/greenhopper/latest/xboard/work/allData/?rapidViewId={rapidViewId}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any official documentation on this anywhere? The official rest api docs are here: https://docs.atlassian.com/jira/REST/latest/#api/2 but make zero mention of these greenhopper endpoints. It also seems like greenhopper has been renamed as simply JIRA - Agile, and again I can't find any documentation about api endpoints for it. Seems less than ideal that I have to find info on this on these boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What he said. I've been using that link has my 'official' doc and it says nothing about sprints. Is that not the official doc?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Official documentation is here: https://docs.atlassian.com/greenhopper/REST/cloud/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you are using version above Jira 7.0 use https://<<jiradomain>>/rest/agile/1.0/sprint/{sprintid} to list sprint details.
https://<<jiradomain>>/rest/agile/1.0/sprint/{sprintid}/issue to list all issues in the sprint.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This doesn't work for me (using OnDemand).
I can see rapid views at https://filetrek.atlassian.net/rest/greenhopper/1.0/rapidview but using one of the IDs I get a 404 for https://filetrek.atlassian.net/rest/greenhopper/1.0/sprints/28.
I'm trying to rename a sprint.
Mike
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also facing the same issue.
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.
I think API changed. try "rest/greenhopper/1.0/sprintquery/[rapidviewID]".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Daehee Kim - "sprintquery" resolved the issue that I was facing
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.