Hello!
I am creating a scheduled automation rule that creates a task in my project, and I need to create a sub-task for it right from the start. I want one of my colleagues to be added as a watcher, but only for that specific sub-task, not for the parent issue.
How can I achieve this? I can't create a nested branch (branch within another branch), and when I try to add a branch for sub-tasks, I get this error:
"This component may be incompatible. One of the following needs to be produced earlier in the rule by the trigger or with a 'for each' branch for this component to work: Issue."
Any idea how to work around this?
Hi @Leon Gumba You can change the Branch by selecting the Children option or you can use the JQL option.
Hi @Manoj Gangwar , and thank you for your response!
Unfortunately, the Children branch option also produces the same error.
However, the JQL branch option worked! I was able to find this topic and it was really helpful:
https://community.atlassian.com/t5/Automation-questions/Adding-watcher-to-subtasks/qaq-p/1939011
It is suggested to create variables before using JQL, which made the rule run smoothly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Leon Gumba using JQL option as Manoj mentioned
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Leon Gumba use the following JQL( parent = {{createdIssue.key}} AND issuetype = "Sub-task") without the brackets
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Doreen Undiri thank you! Your solution works perfectly, and there's no need for variables. Just tested it, and it works like a charm.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Leon Gumba
I believe there are at least four ways to do this with an automation rule:
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.