We have an issue type hierarchy of Capability > Epic > Story.
When all Epics under the Capability have a field set to True, I'd like that to update the same field in the Capability.
However, I can't work out how to do that with an automation rule? I can't seem to set it to recognise that the parent is Capability, and needs to be updated by a change to a field in all the Epics.
"ABC" in the attached screenshot is the name of the field.
Hi @James Wardle - The Parent branch is misleading as it does not pertain to Advanced Roadmap hierarchy. You'll want to do this:
Key = {{issue.Parent Link}}
Thanks @Mark SegallThat makes sense.
Do you know how I would set it so the Capability was only updated when all Epics have True in the ABC field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could try this:
Key = {{issue.Parent Link}}
"Parent Link" = {{issue}} AND ABC = False
{{lookupIssues.size}}
Equals
0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Mark Segall - this worked! Thanks for suggesting this, I don't think I'd have got there otherwise.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, and...to Mark's answer:
When checking a lookup issues result for no issues, it helps to use a default value to compare. Otherwise the result will be "null" and that may not match to 0 logically. For example, testing with:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I learn at least one thing new from @Bill Sheboy each week. Otherwise, my week is a failure. 😉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ha, and thanks. You are on a roll answering questions, Mark. Well done!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mark Segall @Bill Sheboy So I now have a slightly more complex scenario that I think you guys might be able to help with (but related to the above). I've tried to implement the below, and I've got myself confused/can't get it to work.
The issue type hierarchy is Sub-task > Story/Task > Epic > Capability.
The field that gets updated has multiple values - 1, 2, 3, 4, 5 (for simplicity). They're environments that we deploy to, so in theory we can roll back at points.
We want to roll up when all child items have the same value for a field e.g. when all sub-tasks have the ABC field set to 1, then the parent Story/Task gets that field set to 1. Same method for Story/Task to Epic, Epic to Capability.
For Story/Task rolling up ABC field of 1 or 2 to Epic I've gone for:
Key = {{issue.Epic Link}}
"Epic Link" = {{issue}} AND ABC in (2, 3, 4, 5)
{{lookupIssues.size|0}}
Equals
0
ABC = 1
Key = {{issue.Epic Link}}
"Epic Link" = {{issue}} AND ABC in (1, 3, 4, 5)
{{lookupIssues.size|0}}
Equals
0
ABC = 2
However, if I have two stories, and the first one gets set to ABC = 1, then that updates the Epic to also be ABC = 1. I need it to be both stories (in this instance).
I might have over complicated the rule, but wondered if you could help please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @James Wardle - So to confirm my understanding, you're trying to cover two possible scenarios:
If I'm correct, the challenge with this is that 3,4,5 match both outcomes so you'd need to come up with something that makes these unique.
Here's a possible route, but I'm not familiar with your data... Each issue must have either 2 or 1 selected and any combo of 3,4,5:
Not sure if this is an exact resolution for the problem you're facing, but hopefully it provides context into why it won't work as you currently have it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mark Segall - thanks for getting back to me on this. It didn't nail the answer, but it definitely nudged me in the right direction to get to where I wanted to be.
I appreciate the help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.