Hi there.
I have automation rules set up that add or remove a label based on the status of specific children of a story as follows:
- When creating a sub-bug, add label "pending"
- When when all sub-bugs are in "Ready for QA", "In QA", or "Closed", remove label "pending"
- When reopening any of the sub bugs, add label "pending"
What no longer works is the rule that removes the label when all sub-bugs are in specific statuses.
This rule is supposed to look at only the sub-bugs linked to the story, and only if all of them are in specific statuses, it removes the label.
The rule, start to finish, does this:
- When any issue is transitioned to ready for qa, in qa, closed
- If the issue is a sub-bug
- Look at the parent
- If the parent is a story
- Look at the children of the story:
- For all the sub-bug children
- IF all are in ready for qa, in qa, closed - Then edit value in field "label"
Here is a screenshot of the rule that no longer works:

This used to work fine, and to validate the logic of my rule - if I change to "Some match specified JQL" it can easily check that one of the sub bugs is in the right statuses and change the label.
What it can no longer check is that all the sub-bugs are in specific statuses.
The audit log simply says "The following issues did not match the condition" for the parent story.
In other words, even when all sub-bugs are in the right statuses, the rule says the story did not pass the JQL that checks that its sub bugs are in the right statuses.
Thanks in advance!