Automated scheduled issue with children
Asked by Erin Gaunt:

Hi all,

I have a BAU team that I want to build annual automated scheduled Initiatives/Features/Epics/Stories for. I can't seem to get the logic to work to link all the children to their parents. I can get them all to trigger to create but not link them together, can anyone help?  

<br />

Pic is an example of how I want to link them![Screenshot 2024-07-29 105611.png](https://community.atlassian.com/t5/image/serverpage/image-id/338404i7552FD92CD96DF8D/image-size/large?v=v2&px=999 "Screenshot 2024-07-29 105611.png")


Answers:
author: John Funk
body: Hi Erin,

Can you share a screenshot of your rule and exactly what is not working?

comments: author: Erin Gaunt
body: Hi John,

This is what I have so far, but I know I'm doing something wrong after the creation of the Initiative, I just don't know what to select! ![Screenshot 2024-07-29 133724.png](https://community.atlassian.com/t5/image/serverpage/image-id/338424i74CDFAAA5618C2C8/image-size/large?v=v2&px=999 "Screenshot 2024-07-29 133724.png")


author: John Funk
body: Thanks for sharing. You will probably need two rules. One to create the Initiative and it's Features. Then one to create Epics under the feature.

So, Rule 1 creates the Initiative like you have it. Then follow the below (note that I use Objective where you have Initiative and Initiative where you have Feature):

![Screenshot.png](https://community.atlassian.com/t5/image/serverpage/image-id/338427iF2D4A0BAB4348643/image-size/large?v=v2&px=999 "Screenshot.png")

In the parent field of the create Feature action use the name of the variable: {{parentIssue}}

Then create the second rule similar to the first (just copy the first and modify it) except based on an Issue Created trigger and add a condition for Issue Type = Feature and another other conditions needed so the Epics only get created those Features.


author: Erin Gaunt
body: Thank you! Got it to work. Thanks John and Trudy :)


author: John Funk
body: Great! Glad you go it working. And you are welcome!


author: Trudy Claspill
body: Hello [@Erin Gaunt](/t5/user/viewprofilepage/user-id/5502814)

Are you working with Jira Data Center or Jira Cloud?

If Jira Cloud, what subscription plan do you have? Is it Free, Standard, premium, or Enterprise?

Have you modified the Issue Type Hierarchy to define the hierarchy you described?

Are all the issue going to be created in one project? Will they always be created in the same project?

Whenever you ask for help with an Automation run it will also be helpful if you provide screen images that show the entire rule plus the details of each step.

comments: author: Erin Gaunt
body: Hi Trudy,

Working with Jira Cloud on a Premium plan.

Yes, issues are always to be created in the same, single project.

I can't get the rule to work, I've got as far as creating the scheduled Initiative and I can then create the next scheduled task of creating the feature, but I can't get the initiative to either parent the feature or the feature to child from initiative.

This is what I was working off, but it fails.![Screenshot 2024-07-29 133724.png](https://community.atlassian.com/t5/image/serverpage/image-id/338423i7400E69B275E1061/image-size/large?v=v2&px=999 "Screenshot 2024-07-29 133724.png")


author: Trudy Claspill
body: I concur with [@John Funk](/t5/user/viewprofilepage/user-id/7148) 's suggestion for two rules.