Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation and Component Changes

Hi,

I've recently created a new Automation for Components, to ensure all newly created issues have the same Component as the Epic.

However, I want to create a rule that changes all issues that have already been created and create a rule that amends the component, if the Epic Component is changed.

So.

1. For past created issues, amend the Component on the issues and Subtasks to match the Epic.

2. For Components amended on the Epic, to change all the Components on Issues and subtasks to match the Epic.

 

Any assistance here would be greatly appreciated.

1 answer

Hi @Paul D_urso 

For your case #2, you could do that by making one or two rules for the updates, triggered on the epic's component changing.  Using one rule could be a bit complicated, so the alternative is two rules: one that updates stories when the epic changes, and one that updates subtasks when a story changes.  For the story -> subtask update, you will need to enable the option "Allow Rule Trigger" in the details so one rule triggers the other one.

For your case #1, once you have your rules all defined for case #2, you can now use a scheduled trigger rule on JQL to update the issues you want to change.  Copy your epic -> story rule and change the trigger from "component field changed" to scheduled, adding your JQL.  Rules have a processing limit of 100 issues, so keep this rule enabled on the schedule (say, once per hour) and it will process in chunks until you are caught up.  You may want to consider only doing the "to do" and "in progress" issues, ignoring any "done" ones.

Kind regards,
Bill

Thanks Bill, I'm taking a look and will let you know how I get on.

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

453 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you