Use case:
I want to link a story (AA-1) to another project issue (BB-1). I want automation that will automatically link the parent Epic (AA-2) to BB-1 as well. So the end result is:
AA-1 linked to BB-1
AA-2 linked to BB-1
Something like:
●Automation: When: Issue linked
●Branch rule: For Parent
●Action: Link Issue (to the same issue that I just linked)
So far I can only find a way to link it to the issue that is being triggered.
Hello @April_Delay
You need to look in more detail at the explanation for the Issue Linked trigger.
It depends on the link that you are creating between AA-1 and BB-1, and the "direction" of the link. Whichever issue in the pair gets the Outward Description of the link relationship is the one that will trigger the rule.
If you are in AA-1 and you create a link that says "blocks BB-1", then AA-1 is the issue that will trigger the rule. To link AA-1's parent to BB-1 you would have to use the smart value {{destinationIssue.key}}.
If you are in AA-1 and you create a link that says "is blocked by BB-1", then BB-1 is the issue that triggers the rule. To link AA-1's parent to BB-1 you would have to use the smart value {{issue.key}}.
Clarification -
{{destinationIssue.key}} or {{issue.key}} gets you the AA-1 issue. You need to add to that smart value to get the parent of AA-1.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @April_Delay
I believe you can try that by referencing the {{triggerIssue.parent.key}} for your linking.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Branching is the key for this as linking is to whatever is the current issue at that point in your rule. For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your problem is in understanding which issue, AA-1 or BB-1, is actually triggering the rule.
What type of link are you creating between AA-1 and BB-1?
Which one becomes the "source" issue? Refer to my Answer above about distinguishing which issue in the relationship is the source issue. The source is not always the one you are in when you create the link.
The source issue will be the issue that triggers the rule. That could be either the one you are in when you create the link, or the issue that you are linking to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Trudy Claspill and @Bill Sheboy thank you for the response, it helps immensely.
I nmy use case, it is most likely that AA-1 will be the trigger issue. I will try the smart values you've provided to me and let you know how it goes. I am thinking that I may need to put the automation in the BB project or train users to use the Outward direction... whatever the answer ends up being, I'll update my post for others.
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.