-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Component/s: Work Item - Backend - Read
-
None
-
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
- Create more than 100 comments on an issue.
- POST to */rest/api/3/issue/bulkfetch* with the following payload:
{ "fields": [ "comment" ], "fieldsByKeys": false, "issueIdsOrKeys": [ "<issueIdsOrKeys>" ], "properties": [] } - 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.