Enhanced issue search API with field parameter returns only 100 issues at max

XMLWordPrintable

    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: Haven't tried

      Steps to Reproduce

      1. If not already present, create a Jira instance with large number of issues (I tried with over 300) . They can be spread across multiple projects. I used Kanban and software project types
      2. Make a request to enhanced search endpoint with "fields" parameter set to any field and maxResults set to 5000 (which is the maximum that can be fetched as per doc of this query). Eg request body:
      {    
        "jql": "status is not empty",    
        "expand": "",    
        "fields": [        
          "created"
        ],
        "maxResults": 5000
      } 

      Expected Results

      This should return all the issues (300+) in first request.

      Actual Results

      • The response is limited to 100 results with nextPageToken set.
      • Removing the fields parameter altogether returns all the results (300+).
      • This behaviour is valid for below APIs as well.

      Workaround

      User has to rely on pagination to keep on getting next set of 100 Issues

            Assignee:
            Unassigned
            Reporter:
            Faisal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: