IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low (View bug fix roadmap)
    • None
    • 7.13.0, 8.0.0, 8.1.0
    • REST API
    • None

      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

            Loading...
            IMPORTANT: JAC is a Public system and anyone on the internet will be able to view the data in the created JAC tickets. Please don’t include Customer or Sensitive data in the JAC ticket.
            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

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

                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

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

                          Created:
                          Updated:

                            Unassigned Unassigned
                            dnorton@atlassian.com Dave Norton
                            Affected customers:
                            10 This affects my team
                            Watchers:
                            9 Start watching this issue

                              Created:
                              Updated: