Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-69308

The /rest/api/2/issue/<issueKey>/worklog endpoint does not support pagination or ordering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.13.0, 8.0.0, 8.1.0
    • REST API
    • None

    Description

      Summary

      As per JRASERVER-34746, the /rest/api/2/issue/<issueKey>/worklog does not support pagination or ordering

      Steps to Reproduce

      1. Create an issue that has a reasonable number of worklogs
      2. 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.

      Expected Results

      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).

      Actual Results

      The rest endpoint returns all results, from oldest to newest. The maxResults value in this example would show all worklogs for that issue.

      Workaround

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dnorton@atlassian.com Dave Norton
              Votes:
              9 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: