Posting to /rest/api/3/issue/bulkfetch on JIS returns incorrect comment totals and an inconsistent set of comments

XMLWordPrintable

    • 1
    • Minor
    • 3

      Issue Summary

      Posting to /rest/api/3/issue/bulkfetch on JIS returns incorrect comment totals and an inconsistent set of comments

      Steps to Reproduce

      1. Create more than 100 comments on an issue.
      2. POST to */rest/api/3/issue/bulkfetch* with the following payload:
        {
          "fields": [
            "comment"
          ],
          "fieldsByKeys": false,
          "issueIdsOrKeys": [
            "<issueIdsOrKeys>"
          ],
          "properties": []
        }
        
      3. Observe the response.

      Expected Results

      The endpoint should return the latest 100 comments and the correct total comment count, consistent with the behavior of the get issue API.

      Actual Results

      Via monolith: The endpoint returns the latest 20 comments with the correct total comment count.
      Via JIS: The endpoint returns the first 100 comments, but the total is the lesser of 100 or the actual comment count.

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available.

            Assignee:
            Kosta Hassouros
            Reporter:
            Cristiano (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: