Steps to reproduce

      Send a GET request:

      https://<instance>/rest/greenhopper/1.0/sprints/<boardID>
      Expected result

      A list of Sprints in a Board is retrieved

      Actual result

      Error 404

          Form Name

            [JSWSERVER-9747] API endpoint for getting Sprints is broken (error 404)

            Does anybody know how to retrieve the issues in a sprint, and how to add / delete issues to a sprint? The "sprint" endpoint seems to have disappeared, too. To make things worse, my RAB doesn't have a "Show only public APIs" option, so I have no way to at least see the API endpoints.

            Thomas Schwarzfischer added a comment - Does anybody know how to retrieve the issues in a sprint, and how to add / delete issues to a sprint? The "sprint" endpoint seems to have disappeared, too. To make things worse, my RAB doesn't have a "Show only public APIs" option, so I have no way to at least see the API endpoints.

            As was mentioned in the comments, the REST resource for sprints changed in 6.3 from sprints to sprintquery.

            Most of our REST resources are not an official API and are subject to change. We hope to improve this in the future by offering official APIs around REST resources.

            Regards,
            JIRA Agile Team

            Michael Tokar added a comment - As was mentioned in the comments, the REST resource for sprints changed in 6.3 from sprints to sprintquery . Most of our REST resources are not an official API and are subject to change. We hope to improve this in the future by offering official APIs around REST resources. Regards, JIRA Agile Team

            Talk About added a comment -

            Thank you very much, this is exactly what I need!

            Talk About added a comment - Thank you very much, this is exactly what I need!

            Moriah Chandler added a comment - - edited

            I'm not a developer, but this returned what you are asking for I think:
            /rest/greenhopper/1.0/sprintquery/1?includeHistoricSprints=true&includeFutureSprints=true (200)

            Where the number after /sprintquery/ is your Rapid Board ID. You can find the Rapid Board ID by viewing the board and looking at the URL for "rapidView=31" - in this case 31 is the ID. That 200 at the end of the above URL is the max number of sprints to return.

            That gives you the full list with:

            "id": 21,
            "name": "1.270.1",
            "state": "CLOSED"

            for each sprint. The three states are: Closed, Future, and Active

            Let me know if this isn't what you need, happy to help if I can.

            Moriah Chandler added a comment - - edited I'm not a developer, but this returned what you are asking for I think: /rest/greenhopper/1.0/sprintquery/1?includeHistoricSprints=true&includeFutureSprints=true (200) Where the number after /sprintquery/ is your Rapid Board ID. You can find the Rapid Board ID by viewing the board and looking at the URL for "rapidView=31" - in this case 31 is the ID. That 200 at the end of the above URL is the max number of sprints to return. That gives you the full list with: "id": 21, "name": "1.270.1", "state": "CLOSED" for each sprint. The three states are: Closed, Future, and Active Let me know if this isn't what you need, happy to help if I can.

            Talk About added a comment -

            maybe somebody can take a look at the new api and find out if it is possible to get closed, active and planned sprints with one rest url?

            Thanks in advance!

            Talk About added a comment - maybe somebody can take a look at the new api and find out if it is possible to get closed, active and planned sprints with one rest url? Thanks in advance!

            Ouch. That is slightly ridiculous.

            Moriah Chandler added a comment - Ouch. That is slightly ridiculous.

            The API browser doesn't work for OnDemand?

            Audrey Troutt added a comment - The API browser doesn't work for OnDemand?

            Talk About added a comment -

            I have been using the rest api browser at

            https://jira.atlassian.com/plugins/servlet/restbrowser#/

            but unfortunately it seems not to work any more...

            Talk About added a comment - I have been using the rest api browser at https://jira.atlassian.com/plugins/servlet/restbrowser#/ but unfortunately it seems not to work any more...

            The only info we have is via the Rest API browser. It doesn't contain real documentation but at least you can see the Greenhopper API and figure out what the calls do.

            NOTE: you have to unclick "Show only public APIs" at the top in order to see anything related to Greenhopper.

            https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser

            Moriah Chandler added a comment - The only info we have is via the Rest API browser. It doesn't contain real documentation but at least you can see the Greenhopper API and figure out what the calls do. NOTE: you have to unclick "Show only public APIs" at the top in order to see anything related to Greenhopper. https://marketplace.atlassian.com/plugins/com.atlassian.labs.rest-api-browser

            Their "API documentation" seems to be limited to javadocs https://developer.atlassian.com/display/JIRADEV/JIRA+Agile+Java+API+Reference

            Audrey Troutt added a comment - Their "API documentation" seems to be limited to javadocs https://developer.atlassian.com/display/JIRADEV/JIRA+Agile+Java+API+Reference

              Unassigned Unassigned
              dwierzbicka Dobroslawa Wierzbicka (Inactive)
              Affected customers:
              6 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: