Pagination Issue with /search/jql Endpoint: Incorrect startAt Behavior

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      The /search/jql endpoint in the Jira Cloud REST API does not respect the startAt parameter, resulting in incorrect pagination. The first issue returned is always the same, regardless of the startAt value.

      This is reproducible on Data Center: no

      Steps to Reproduce

      1. Make a GET request to the following endpoint:
      2. https://mysite.atlassian.net/rest/api/3/search/jql?jql=project%3DDEV%20AND%20status%3D%22Done%22%20ORDER%20BY%20key%20ASC&startAt=50&maxResults=10&fields=key,summary,issuetype 
      3. Observe the results returned by the API.

      Expected Results

      The first issue returned should be ISSUE-20, reflecting the correct pagination starting at the 20th issue.

      Actual Results

      The first issue returned is always ISSUE-1, which is the first "Done" issue, indicating that the startAt parameter is not being respected.

      Workaround

      As a temporary workaround, using the deprecated endpoint /rest/api/3/search might work correctly for pagination. However, please be aware that relying on deprecated endpoints is not recommended for long-term use.

       

              Assignee:
              Unassigned
              Reporter:
              Luis Alcazar
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: