Hello everyone and thank you in advance for your help. I have been using Jira for some time but am just getting into using automation. I am setting up a rule that triggers when I create an epic containing a particular text string under my current project. The goal is to create a set of "child" epics that each contain their own set of stories.
In my screenshot, I kept it simple and tried this with one "child" epic and a single story to go underneath it. What I am finding is that the story's Parent/Epic Link is linking to the original "parent" epic I manually created that triggers the rule, instead of the "child" epic. I am just learning about hierarchy, so what you see in the screenshot is what I cobbled together.
Could someone please tell me (a) how to link the story to the "child" epic, and (b) is there a simpler or more elegant way of achieving what I am looking to do?
Also, what I would ultimately like to do is use that original epic to "hold" the other epics via Relates To links. That way someone could go to the main epic and see the sub-epics underneath it. I believe epics can't really be parents to other epics, so is there a better way of doing this? Should I just create a new issue type that would function in that way, even if it's not higher in the issue chain than an epic? If this is opening a can of worms, I can push this off for another day.
Thank you!
Hi @Salvatore Conte -- Welcome to the Atlassian Community!
When only creating one child Story for each new Epic created in the rule, you could set the parent with the {{createdIssue}} issue smart value; that refers to the most recent one:
When creating multiple Stories for each new Epic, please try branching instead:
As shown above, you would remove the branch to current issue shown in your current rule. And to link the new Epics to the trigger one, do that inside the branches
Kind regards,
Bill
Hi Bill. Thank you very much for your help. Forgive me if I misunderstood your direction as I am still facing the same issue.
Beneath the "When: Issue Created" event, which is triggered manually when an epic matching the JQL conditions are met... I tried moving the "child" epics out from my branch into the main thread of the rule. From there I have the branch coming off the main "thread" of the rule to create the two stories you see. Both stories are using the {{issue.key}} value you mentioned for their Parent field. Back to the main thread, I repeat the same pattern with a new epic by itself and two stories branched out from it.
I must be doing something wrong, because the stories continue to link to my original epic that triggers the rule, and not the new epics that precede each set of stories. Am I making a simple error with my setup? I have an updated image attached for reference. Thank you again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I accidentally posted my response twice. Removed duplicate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After creating the new Epic, the branch should be to Most recently created issue rather than to Current issue. Please try that and re-test.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy That did the trick! Thank you very much for all of your help!
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.