I want to create an Automation rule in which all the issues which has the Parent (Initiative issuetype) Initiative# field value should make the child (Epic, Story issuetype) Initiative# field value same especially the ones which are wrong. So for example in the below snip the Parent has the correct value but the child doesn't show the right value. So it should be RIT-337 but Epic & Story is showing PMO-442
First thing, have you investigated why those child (and grandchild) issues' values for the field are different? Were these entry errors, planned differences, or has the issue hierarchy changed in a way to make them incorrect? Knowing this will help guide the scope of your change...because using an automation rule for this type of change will not be easily reversible if done incorrectly.
Next...some questions may help the community to offer solution approaches:
Until we learn those answers...I believe you could do this with multiple rules to initially fix the condition (one for each parent/child level pairing), and then several more rules to keep the values in synch over time.
If you have already started your rules, please post images of them and the audit log details showing the rule execution. Those will provide more context for the community to help. Thanks!
Kind regards,
Bill
Hello @Bill Sheboy ,
So what I can see is that there is an Automation which did the trigger on June 17 from Blank to PMO-442 for Child issues and Parent one happened last month by Automation as well from PMO-442 to RIT-337. I have added the snip below for the 2 automations currently exists
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From the information you provided, I infer you have the Premium license level of Jira Cloud:
You show two rules, and now I wonder what is not working as you expect?
Synchronizing a field across this many issue type levels can require either several rules (to update as changes occur), or a single, scheduled trigger rule to do this periodically (e.g., daily).
A better approach may be to consider: which issue type level "owns" this information, and to only store the value at that level.
For your question's scenario, I anticipate you will need rules covering at least these use cases:
None of these rules should enable the "Allow rule trigger" option, or they would quickly create a cascade of looped processing, and halt automation execution. It may be possible to do this with fewer rules using that option, although that will be harder to maintain and diagnose problems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Bill Sheboy ,
Thank you for your inputs so you want me to create 7 Automation rules but I quite didn't understand your Point 8 & 9 what you meant, could you elaborate please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry for my long answer; perhaps I gave too much information...
I strongly suggest considering: why do you want that field in sync for the issues in the entire hierarchy? Although the rules can do this, it may not be a better answer to the problem you are trying to solve.
For #8...when an issue such as an Epic is deleted, the child issues' Epic Link is cleared. I do not recall if that will trigger a rule as a "parent" change. My question was: what do you want to happen to a Story's Initiative# field when it is no longer connected in a chain of issues?
For #9...I do not know what I may have missed for your scenario.
I encourage you to meet with your Jira admin to describe the problem and needs, and they may help identify other things required to solve the problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy don't have to be sorry also I don't want the field to be in sync as long it's providing the correct value under Initiative# from the parents.
So usually none of the child issues would be orphan as every child needs to have a parent, if Epic is deleted then that's fine to have the child value cleared because then that child would either be mapped to another parent or deleted as well. Yes, I don't want to happen to Story which are not connected to a parent which I am stating in my rule anyway which I sent earlier.
So now what I have created already the 2 rules does that needs to be changed? Shall I now create those 7 new rules along with what I have or does it need to be part of the same rule? Please advise, thank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your scenario will determine which rules you need. Specifically,
Again, I encourage you to meet with your Jira Admin to map out and create these rules. Rules like this can be challenging and your admin can help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Bill Sheboy so the field should be run daily or always should be updated. I expect it to be set only at the Initiative issuetype level so that all the child issues are updated automatically with no manual edits because I'll remove that field from screen scheme under Epic and Child issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to update once per day, your original rule that branches through all the child issues will work.
If you want to always update, you will need multiple rules, probably with 3 for each level (triggered on issue create, triggered on Initiative# changed, and triggered on parent changed).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.