Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation, initial run across all issues

Malte Larsson October 7, 2021

Hi, 

I've created an automation rule that sets the Due date of issues based on sprint they belong to. The rule is triggered when the issue is updated in any way.

Is there a way for me to execute this rule one time across all existing issues within the project in order to avoid having to manually update each issue individually?

Kind regards 
Malte 

2 answers

1 accepted

9 votes
Answer accepted
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 7, 2021

Hey @Malte Larsson ,

My main train of thought we be the following:

  1. Duplicate your automation rule
  2. Change the trigger to run scheduled
  3. Enter a proper JQL on which it needs to run (could be just Project = xxx)
  4. Sit back and look at the result after the schedule has run
Malte Larsson October 10, 2021

Hey @Dirk Ronsmans 

Perfect! Just the type of solution I was searching for. 

Thank you for your help! 

Anthony Amirfar
Contributor
June 6, 2024

Hello,

I'm attempting to do the same thing but I'm confused as to how to make this rule run on every issue in my project.

Would either of you be willing to describe this a little more? Specifically step 3.

See below what I currently have (sorry in advance for my newbie questions)

 

aasortintoepicrule.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2024

Hi @Anthony Amirfar 

First thing: this is a very old thread, and so I recommend creating a new question, and perhaps linking back to this one.  That will ensure the maximum number of community members see it to offer suggestions.

Until we see that new question...

First, your rule should probably use an if / else condition structure rather than what you show: https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#If-else-block

Next, please re-read the original steps described by @Dirk Ronsmans , where the rule is copied, the new rule's trigger is changed to scheduled, with JQL to find the issues you want to update. 

Specifically, that JQL creates the "stopping condition", where the rule will keep finding issues to update until done.  In your case, that appears to be the presence of values in the Parent and Type of Request fields.

Kind regards,
Bill

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2021

Hi @Malte Larsson 

Would you please explain why you want to run this rule for all issues in the project?  For example, are you pre-assigning all issues to sprints far into the future?

If not, perhaps changing the trigger to sprint started for the update would help.  You may need a "clean-up" rule in the event your team adds/removes issues to/from an already in-progress sprint.

Kind regards,
Bill

Malte Larsson October 10, 2021

Hi @Bill Sheboy 

I've added an automation rule that assigns issues certain information based on the sprint it's added to. I've added this rule in projects that already have a lot of issues, so I needed a way to trigger the automation rule on all existing issues that already are connected to a sprint. 

Dirk had a working suggestion above. 

Your comment and effort to help is much appreciated! 

Kind regards, 
Malte 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer