-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
1
-
Severity 3 - Minor
-
Issue Summary
The Jira service desk rest api call for customers does not respect pagination when the results returned are more than 50. It always forces the results to a limit and size of 50.
https://<instance>.atlassian.net/rest/servicedeskapi/servicedesk/<projeci_id>/customer?start=0&limit=100&size=100
Environment
Jira service desk
Steps to Reproduce
- Create a service desk project with more than 50 Customers
- runt the rest api call https://<instance>.atlassian.net/rest/servicedeskapi/servicedesk/<projeci_id>/customer?start=0&limit=100&size=100
Expected Results
Results returned with a limit of 100 and a size of 100
Actual Results
Results returned with a limit of 50 and size of 50 ignoring that set parameters
Workaround
Use the "start" parameter to get the next batch of 50.
So for Example, first time run the code below to get first 50:
https://<instance>.atlassian.net/rest/servicedeskapi/servicedesk/<projeci_id>/customer?start=0&limit=50&size=50
The second time run the code below to get 51 to 100
https://<instance>.atlassian.net/rest/servicedeskapi/servicedesk/<projeci_id>/customer?start=51&limit=50&size=50
- duplicates
-
JSDCLOUD-4187 Inconsistent JIRA Service Desk REST API Pagination
- Closed
- relates to
-
SDECO-445 Loading...