Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-5920

Running Servicedesk REST api to GET all requests posted by a customer does not fetch all issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 3.12.2
    • API and Integrations

      Summary

      Trying to retrieve issues reported by a a customer user using Jira Servicedesk  REST api.
      It looks like its not possible to retrieve all issues using the REST api.

      Steps to Reproduce

      1. Find a customer user that has reported thousands of issues using customer portal
      2. Run the REST call like this : <baseURL>/rest/servicedeskapi/request?start=0&limit=100 <baseURL>/rest/servicedeskapi/request?start=0&limit=100 <baseURL>/rest/servicedeskapi/request?start=100&limit=100 <baseURL>/rest/servicedeskapi/request?start=200&limit=100 <baseURL>/rest/servicedeskapi/request?start=300&limit=100
      3. but the api is only returning few hundred issues, not all of them even when there are thousands of issues reported by the customer.

      Notes

      Since the REST api has another known bug : https://jira.atlassian.com/browse/JSDSERVER-4187, as a workaround tried to run the REST call like this :

      1. <baseURL>/rest/servicedeskapi/request?start=0&limit=100 <baseURL>/rest/servicedeskapi/request?start=0&limit=100 <baseURL>/rest/servicedeskapi/request?start=50&limit=100 <baseURL>/rest/servicedeskapi/request?start=100&limit=100 <baseURL>/rest/servicedeskapi/request?start=150&limit=100

      Expected Results

      It is possible to retrieve all the issues reported by the customer.

      Actual Results

      It is not possible to retrieve all the issues using the REST api.

      Workaround

      There is no workaround available as of now

            Unassigned Unassigned
            rtandon@atlassian.com Ruchi Tandon
            Votes:
            4 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: