Jira API doesn't respect the default maxResults of 50

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: 7.6.9, 8.20.15
    • Component/s: REST API
    • None
    • 7.06
    • 1
    • Severity 3 - Minor
    • 0

      Problem

      Jira 7 and 8 documentation states in GET comments documentation that the default value of maxResults is 50 comments meanwhile it defaults to 1048576 (1024 * 1024)

      Environment

      .Jira 7.X and 8.X

      Steps to Reproduce

      Run GET /rest/api/2/issue/

      {issueIdOrKey}

      /comment without any other request parameter

      Expected Results

      Results will be maxed to 50 in the first page

      Actual Results

      All comments are pulled for the specified ticket and maxResults defaults to the maximum

          "startAt": 0,
          "maxResults": 1048576,
      

      Workaround

      Push maxResults request parameter with an integer to get a limit on the number of returned comments

      Notes

              Assignee:
              Unassigned
              Reporter:
              Mohamed Kouki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: