As per JRASERVER-34746, the /rest/api/2/issue/<issueKey>/worklog does not support pagination or ordering
- Create an issue that has a reasonable number of worklogs
- Attempt to request the worklog endpoint, using the startAt, maxResults, total or orderBy to filter the results. For example, http://localhost:8080/rest/2/api/issue/TEST-1/worklog?maxResults=10.
The rest endpoint returns the results in line with the parameters specified in the URL. In the example given, only 10 results should be returned (and the value should be reflected in the JSON output).
The rest endpoint returns all results, from oldest to newest. The maxResults value in this example would show all worklogs for that issue.
Use Automation for Jira to send the webhooks. It does allow to customize the payload using Smart Links.
Reference: How to send a webhook with all worklog entries using Automation for Jira