-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.1-OD-06-1, 6.1.1, 6.1.2, 6.1.4, 6.2.5, 6.4.9, 7.13.0
-
6.01
-
14
-
Severity 3 - Minor
-
1
-
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
Summary
When querying the rest/api/2/issue/issueKey endpoint, the worklog properly only includes the first twenty results - and this property does not support the usage of expansion or pagination, as outlined in the REST API platform page documentation.
Steps to Reproduce
- Create an issue with several worklog entries.
- Browse to http://localhost:8080/rest/api/2/issue/TEST-1?expand=worklog&maxResults=40
Expected Results
The rest endpoint should return at most 40 results in the worklog section.
Actual Results
The REST endpoint only returns the first 20 results in chronological order.
Workaround
Use the /rest/api/2/issue/<issueKey>/worklog endpoint to list all worklogs for a given issue. Additional manipulation will be required by the REST consumer to sort or filter those results; as that endpoint does not support pagination either. Please see JRASERVER-69308 for more details.
- is cloned from
-
JSWSERVER-9789 Result for Issue rest api call returns only the first 20 worklogs
- Closed
- is duplicated by
-
JRASERVER-39658 Inconsistent counts of worklogs and comments in an issue via the REST API
- Closed
- relates to
-
JRACLOUD-34746 Result for Issue rest api and Webhooks call returns only the first 20 worklogs
- Closed
-
JRASERVER-69308 The /rest/api/2/issue/<issueKey>/worklog endpoint does not support pagination or ordering
- Gathering Impact
- clones
-
JDEV-24792 Loading...