-
Type:
Bug
-
Resolution: Invalid
-
Priority:
Highest
-
Component/s: Work Item - Search - Backend - JSIS
-
None
-
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
- Make a GET request to the following endpoint:
- 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
- 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.