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

REST Api call for customers does not respect pagination (limit, size)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • Forge and Connect
    • None

      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

      1. Create a service desk project with more than 50 Customers
      2. 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
      

              Unassigned Unassigned
              sayanloye Shakiru Ayanloye (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: