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

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 9.3.0, 9.2.1, 9.1.2, 8.0.13, 8.1.12, 9.0.4, 8.2.9
    • Component/s: Build Queues, REST API
    • None
    • Severity 3 - Minor

      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

            Assignee:
            Unassigned
            Reporter:
            Eduardo Alvarenga (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: