Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-75868

JQL search for issues added and removed from a sprint

    XMLWordPrintable

Details

    • 2,425
    • 62
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      It could be useful to be able to search for issues that were added or removed from a sprint during it's progress.

      A customer even tried to get help from Script Runner support, but the according to the support, the respective function that could return that result is available only to the Server version of Script Runner.

      It would be great to have it built natively.

      Workaround

      As with all Automation rules, please be aware of your Automation service limits.

      1. Create a custom field of type "Paragraph" and call it something like Automation Sprint Logs:
      2. Set up your automation rule like so:

        The Automation Sprint Logs field is updated with the following value:
        {{now}}: 
        Old Sprint Value: {{fieldChange.fromString}}
        New Sprint Value: {{sprint}}
        ***
        {{customfield_10195}}
        

      Notes

      • Including {{customfield_10195}} means that new changes are prepended to the existing logs rather than replacing them. "10195" is the ID of the custom field Automation Sprint Logs.
      • The audit log action shown in the above rule is not mandatory but it does help with debugging.
      • Here's how the field on the issue looks:
      • You can search the field using the contains operator (~) like so:
      • You can also exclude issues that currently belong to a certain Sprint using the following JQL:
      "Automation Sprint Logs[Paragraph]" ~ "Dates sprint 3" AND Sprint != "Dates sprint 3"
      • The Automation Sprint Logs custom field will only be populated from the time the rule is set up. Previous Sprint changes will not be shown there.

      Please let me know if you have any questions!

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          477 kB
        2. screenshot-2.png
          screenshot-2.png
          203 kB
        3. screenshot-3.png
          screenshot-3.png
          180 kB
        4. screenshot-4.png
          screenshot-4.png
          377 kB
        5. screenshot-5.png
          screenshot-5.png
          286 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lalmeida@atlassian.com Leonardo De Almeida
              Votes:
              1312 Vote for this issue
              Watchers:
              471 Start watching this issue

              Dates

                Created:
                Updated: