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.
- Create an issue with several worklog entries.
- Browse to http://localhost:8080/rest/api/2/issue/TEST-1?expand=worklog&maxResults=40
The rest endpoint should return at most 40 results in the worklog section.
The REST endpoint only returns the first 20 results in chronological order.
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.