Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22256

Bamboo's /rest/api/latest/queue endpoint pagination does not work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 9.3.0, 9.2.1, 9.1.2, 8.0.13, 8.1.12, 9.0.4, 8.2.9
    • Build Queues, REST API
    • None

    Description

      Issue Summary

      This is reproducible on Data Center:

      The start-index and max-result REST API parameters produce no effect when used with the /rest/api/latest/queue endpoint.

      Steps to Reproduce

      1. Queue several builds in Bamboo (10 for example)
      2. Run:
        $ curl -s -H "Accept: application/json" -uadmin:admin -X GET 'https://bamboo.mydomain.net/rest/api/latest/queue?expand=queuedBuilds.queuedBuild&max-result=2&start-index=2'
        

      Expected Results

      • The REST endpoint should return only 2 results, from index 2 and 3
      • max-result and start-index should reflect the custom setting

      Actual Results

      • The REST endpoint returns all queued builds
      • max-result and start-index are ignored

      Workaround

      Use a tool such as jq to paginate the results

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              73868399605e Eduardo Alvarenga
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: