Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-8279

Jira Service Desk REST API pagination attributes not working as expected

XMLWordPrintable

      Summary

      Jira Service Desk REST API pagination attributes not working as expected

      Steps to Reproduce

      1. Perform a call to JSD REST API like:
        Get customers
        GET /rest/servicedeskapi/servicedesk/{serviceDeskId}/customer
        
      2. Make sure that your instance has multiple customers (1K+)
      3. Try to use the parameter:
        ?start=1000
        

      Expected Results

      • We should be able to retrieve the users from that specific position

      Actual Results

      No users are retrieved.

      Notes

      Other issues with this endpoint:

      • Even if not specified on the documentation, this is an experimental endpoint. Therefore, you must add the X-ExperimentalApi: opt-in header in your requests or it won't work.
      • The isLastPage attribute is returning as true on each request.
      • The start and limit  attributes do not reflect the values passed as url parameters.
        For example, callling: https://XXXX.atlassian.net/rest/servicedeskapi/servicedesk/12/customer?start=10&limit=10 returns:
        {
            "size": 10,
            "start": 0,
            "limit": 50,
            "isLastPage": true,
        ...
        

       

      Workaround

      There are no workarounds available at this time.

              aolrich Andrea
              tbehm@atlassian.com Thiago Behm.
              Votes:
              8 Vote for this issue
              Watchers:
              17 Start watching this issue

                Created:
                Updated:
                Resolved: