I want to add up the values of a customfield of all Epic in one Feature (1st level above Epic in our advanced Roadmaps). The feature issue is logged as the "parent link" in the Epics.
parent = {{issue.key}}, doesn't work.
"parent link" = {{issue.key}}, doesn't work.
I have a similar automation to add the values of all stories under an Epic and that works fine.
Hi Bill,
Thanks for wanting to help.
I indeed think there is a problem with the "For: JQL "parent link" = {{issue.key}}. I'm afraid that it is related to the integration of Advanced Roadmaps. I need to find the " parent link" from the Epic. A similar automation where I look for the Epic of a Story. That automation works fine.
please find the requested screen shots.
best regards
Jeroen
Thanks for that information, and as a tip: please try to stick with one thread in responding. That will help others see if there are multiple possible answers to a question.
Okay, looking at the rule's audit log, it seems to be showing multiple issues where found that are parents of the trigger issue Epic. Is that what you expected?
Next, with the recent changes to the epic fields, I recommend trying each of your rule's JQL stand-alone with example issues. That will confirm which field to use for the parent/child linkages...and the correct direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When something with parent/child relationships does not work with JQL in lookup issues, the cause may be the context of the rule action (i.e., where we are in the execution).
To help diagnose this, would you please post images of your complete automation rule, including the details of your lookup issues action, and of the audit log details showing the rule execution? If you have a longer rule, please try to use a screen capture which scrolls the browser; that will put the rule in a single image. Thanks!
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 splitted the automation rule. It seems to be that the problem primarily is in the branching.
If get the message:
Branch rule/ related issues
Error searching for related issues. This is most likely because the following issues don't have a related issue of the type you specified. Try narrowing your search to only include issues that contain links to related issues:
FOR-22: "((FOR-22 = "parent") AND (key != FOR-22)) AND (project in (24375))" - Field 'FOR-22' does not exist or you do not have permission to view it.
I tried it with "parent" and with "parent link" none is giving results.
Can I use automation for issues in Advanced Roadmaps?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Some of the fields in advanced roadmaps are not available in automation rules yet. That is why I was suggesting trying your JQL stand-alone with Advanced Issue Search first to confirm it works as you expect. For example, the initial rule seemed to return too many Features for the trigger issue, Epic.
Would you please post an image of your new rule for some context, showing the details of the branch, and of the audit log details? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The new rule:
I run it also with "parent link" instead of "paren" both with cp the same result:
I think we tend to the same conclusion: the automation does not yet support looking for upper-level issues above Epics. I created a support ticket for Atlassian to look into this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With some great help of @Vaibhav Revankar I solved the problem for adding the values of a custom field of childs in the customfield at parent level, where the parent level is above the Epic.
I have now three of these automations. to cumulate the cost and budget from level 1 upto the toplevel. Per automation it does work. Together it seems to be random.
Is there a way to make sure automation rules run in predefined sequence?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you say that automation rules need to have a predefined sequence, we can make that happen by enabling the checkbox in the "Rule Details" page "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."
If this option is enabled on a automation rule, we can trigger the current rule as a result of the previous run rule.
Which means, if we have Automation A which has a Action to "Edit a issue field" and Automation B which has a Trigger that fires on "Field Value Changed" of the above field. Then, checking the aforementioned option in the "Rule Details" page will execute the rule B as a result of Rule A.
These can be chained as well. What you can do is enable this checkbox in the Story -> Epic budget update rule and in Epic -> Parent rule as well and so on. However, do not check the box on the first sub-task to Story budget calculation.
What this will do is, whenever you update the budget on Sub-task, the Story will get updated. This update will trigger the rule (thanks to the checkbox in the "Rule Details" page) for Story and update the Epics. Once Epic is updated, again the rule will trigger due to the checkbox enabled will update its Parent and so on move forward higher up in the hierarchy. This will stop at the highest hierarchy and not get into loop as once the last rule is run and even if sub-task is updated, It won't trigger the first rule.
So the start will still be manual update of the Budget field by a human user and then trickle the changes in auto mode from bottom to top.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I configured like you advised, and it works as expected, YEAH!
With both the automation logic and the sequence check-box, I can create an "equivalent" of the roll-up for storypoints in advanced roadmaps, but then for custom fields. which is valuable for a.o. budgets
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Question: Is there a way to make sure automation rules run in predefined sequence?
When you say that automation rules need to have a predefined sequence, we can make that happen by enabling the checkbox in the "Rule Details" page "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."
If this option is enabled on a automation rule, we can trigger the current rule as a result of the previous run rule.
Which means, if we have Automation A which has a Action to "Edit a issue field" and Automation B which has a Trigger that fires on "Field Value Changed" of the above field. Then, checking the aforementioned option in the "Rule Details" page will execute the rule B as a result of Rule A.
These can be chained as well. What you can do is enable this checkbox in the Story -> Epic budget update rule and in Epic -> Parent rule as well and so on. However, do not check the box on the first sub-task to Story budget calculation.
What this will do is, whenever you update the budget on Sub-task, the Story will get updated. This update will trigger the rule (thanks to the checkbox in the "Rule Details" page) for Story and update the Epics. Once Epic is updated, again the rule will trigger due to the checkbox enabled will update its Parent and so on move forward higher up in the hierarchy. This will stop at the highest hierarchy and not get into loop as once the last rule is run and even if sub-task is updated, It won't trigger the first rule.
So the start will still be manual update of the Budget field by a human user and then trickle the changes in auto mode from bottom to top.
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.