I have an epic with issues in it. I'd like an automation that will:
- check if this epic contains issues
- add a comment with those issue keys
From there, another automation will add 'relates to' links to those issues.
The epics will eventually be converted to tasks, and I'd like to keep a link to the children.
Variations on this failed for me.
I'm an admin, and have scriptrunner if it helps.
Thanks for any pointers!
Hi @Fred
You note that you have an automation rule and that it failed to do what you wanted. Would you please post images of the rule and the audit log details, showing where it did not work as expected? That may help the community to offer suggestions. Thanks!
Kind regards,
Bill
Thanks, Fred.
That seems a bit different from what you described...perhaps that rule is assuming part of the problem has already been solved?
You noted two steps:
Your first rule could be:
"Here are the children to link later: {{#lookupIssues}}{{key}}{{^last}},{{/}}{{/}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bill, that works perfectly, thank you! Has the syntax for this solution changed? It's not working on our instance, and seems like it's failed for others.
It says 'The following issues did not match the condition:' which is the trigger issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Fred. I have not tried the rule in that post so I cannot confirm any changes. Perhaps that regular expression is sometimes not matching for other reasons, such as...
In answering another question about extracting links from the description, I found they are stored as "smart links" in the markup. Perhaps the same is true for the comments markup. You can confirm this by writing the comment body to the audit log.
One other work-around is to store the keys in the comment with the first rule such that they cannot be turned into links, such as adding spacing around the hyphen in the key.
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.