We have an Automation that is supposed to change the Parent of a Subtask to the linked Issue of its parent and it worked fine with just one cloned issue.
It is using:
"key": "{{issue.parent.issuelinks}}"
Now we have the problem that there is more than one linked issue on the Parent and it doesn't work anymore (as it can't insert more than one key).
How can I grab only the "clones" linked issues of the parent?
I already tried these and I am running out of ideas:
"key": "{{issue.parent.issuelinks.clones}}
"key": "{{issue.parent.issuelinks(clones)}}
"key": "{{issue.parent.linkedIssues(clones)}}
"key": "{{issue.parent.linkedIssues.clones}}
"key": "{{issue.parent.linkedIssues"clones"}}
Please send help :D
After @Bill Sheboy helped me understand how filtering lists works, I could fix my automation.
Just in case somebody needs a similar automation I will leave the details here. :)
When a Subtask is created the automation clones it and afterwards uses "for: most recently created issue" to edit the Parent (which assignes it not to its own Parent, but the Issue the Parent was cloned from).
So this Automation is for Issues where you want a copy from and if you add Subtasks you want to make sure they are going to be in the original issue as well.
for copy paste:
"key": "{{#issue.parent.issuelinks}}{{#if(equals(type.outward, "clones"))}}{{outwardissue.key}}{{/}}{{/}}"
In general I learned filtering the lists works with the link direction wich are: inward and outward (or both).
So in our case above as it is "clones" it uses "outward". If it was a "is cloned by" link it would be inward.
Thanks again - this really helped me a lot. <3
I am glad to learn that helped, and...
Your rule uses the Issue Created trigger. That one can fire so quickly that some data may not yet be available to the rule. This may cause unexpected behavior (e.g., incorrect condition results) or errors.
To solve this I recommend always adding the Re-fetch Issue action immediately after the Issue Created trigger. This will slow down the rule a bit and reload the data before the rule proceeds with processing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you so much.
We actually sometimes had Automation-Hickups so I will add this to our Create rules now. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please see my response to your other question, for the same need, here:
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.
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.