Hi All,
When I create an Epic for my project, I wanted to get the Standard stories or tasks and Sub tasks under the stories or tasks, created automatically. Requesting you to help with with a video recording for better understanding.
To make it specific and clear on what Iam looking ---
When I create an EPIC, Iam expecting to see the below tasks/stories created under it automatically
STORY 1 -------> Sub task 1 , sub task 2, Sub task 3
STORY 2---------> Sub task 1 , sub task 2, Sub task 3
STORY 3---------> Sub task 1 , sub task 2, Sub task 3
Hello @Athira K
Welcome to the Atlassian community!
If you are working with a Company Managed project, you can find such a video here:
https://www.youtube.com/watch?v=tF1S-cVMIw4
This video shows how to create issues under an Epic.
The only thing it is missing is creation of subtasks under the created child issue, which I have shown in the image below.
Hi Trudy,
Thank you for your quick response, I tried the above which you have provided (Screenshot below)
But when I created the Epic this is what I got
And if you see the Story is missing in Epic and it just only created the sub task. Like I said I wanted to create Epic which contains stories along with Sub tasks inside the stories.
EPIC ---->STORY 1 -------> Sub task 1+sub task 2+Sub task 3
I already automated "Automating stories under Epic & Automating sub tasks under stories or tasks etc."
and its working fine, so to incorporate both these rules into one rule can we use some merging options or branching options? Are you aware of any of those?
Can you pls advise how to proceed or in case if I am missing something.
Thank you so much for helping me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My apologies for misleading you.
The way I presented the rule, the subtask would indeed be created in the Epic rather than the Story.
You could do this with two automation rules; one to create Stories and one to create subtasks, as @Christopher Maxwell suggested.
Here is another way to create both in one rule. This method works to create Stories with Subtasks underneath them.
This time I tested it out to make sure it works. ;-)
The first three steps remain the same:
The next steps would be:
4. Action: Re-fetch
5. Action: Create Variable (to record the Key of the newly created Story)
6. Action: Create Issue - in same project, Subtask, set Parent to the variable you created.
You would repeat Step 6 to create additional Subtasks under the first story.
Then you would repeat steps 3 through 6 to create another Story with another set of Subtasks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Trudy Claspill Great info here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
First of all apologies for the delayed response and secondly a big thanks for helping me out here. But unfortunately I am still not getting the desired result here and I have been testing this out from past one week. So I wanted to share the screenshot of the Audit log and the rule here, I am requesting you to take a look and help me out one last time, in case if Iam missing something here.
Once again thank you so much for putting time and helping me out .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Athira K
Please show us the details of the Create Variable action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have when I run the rule in my own environment against a Company Managed Software project I do not encounter the problem you are encountering.
- My first new Story is correctly created under the Epic.
- My first new Subtask is created under the Story just created.
- I can successfully create another new Story, and another new Subtask under the second new Story.
If you have been making a lot of edits to this one rule I would suggest trying to remake the rule from scratch. I have heard of instances where rules have behaved in unexpected ways after many different edits have been made to them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trudy,
Thank you so much for helping me again, let me try a few more round soon like you mentioned in other environments and will confirm if working.
But again, I have no words to thank you for helping me this far. Will keep you posted.
Athira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just wanted to thank you for the detail you provided. I was able to use this for the basis of an automation for when a label is added to fire off a story and associated subtask!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Trudy Claspill ,
Thank you for your screen shots with the detail setup.
I created a new automation with the Re-fetch action and Create variable action but my tasks are not linked to the story, but to the epic.
Here are a couple of screen shots of my setup and results. Is there anything else I need to do? Thank you in advance! Hoa W.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Hoa Walsh
Welcome to the Atlassian community.
To get maximum visibility on your question please start a new Question rather than posting on an existing Question that is over a year old. The only people who see updates on existing Questions are the original author and the people who have already responded to it.
If this existing Question is relevant to your situation, include a link to it in your new question.
Also, post images that show your entire rule.
I can point out right away that you scenario is not the same as the original poster. They asked about Epics, Stories, and Subtasks.
The issue type hierarchy for Jira is:
Epics (level 1)
|-- standard level issues (level 0) such as Story, Bug, and TASK
|-- subtask level issues (level -1)
The parent of an issue must be an issue type from the level above it. Story can't be a parent of Task because they are at the same level.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My apologies! I will post a new one with more details. I think my thoughts were the task were a lower level than the story. I will try again using subtasks to see if it will link to the story. I had tried it once and it did not so that's why I tried the task.
Thank you!!
Hoa W.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just wanted to let you know that I created a new automation rule so I'm not updating an existing one and it's working for me as well, per your instructions. The subtasks are created and linked to the correct story and they stories are linked to the epic.
Thank your for your detail instructions. :-)
Hoa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Athira K
It’s Aleksandra from Deviniti - the vendor of the Issue Templates for Jira app 👋
If you’re open to using a plugin and would like to accommodate other cases as well, as an alternative to automation you could use our plugin to create different kinds of templates (e.g. for bug reports or feature requests) and then apply them automatically with a dedicated post function.
This way, you could easily manage the content of issues, and populate the whole structures of Epics, issues under Epic, sub-tasks, and links, as well as set up field values directly in a template.
For more details about the templates repository and post function, I encourage you to see our official documentation available here. Hopefully, you will find it useful!
Cheers,
Aleksandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Athira,
Great question! First, let me say that it's great you are looking to automate tasks.
Yet, unfortunately, I do not have video recording capability functional at this time, but I can still share some ideas to help you.
In Jira, automatically creating new issues would be done via Automation. Jira has a great tutorial complete with screenshots that walks through the process of creating an automation to open sub tasks:
https://www.atlassian.com/agile/tutorials/how-to-auto-create-subtasks-with-jira-software-automation
The one difference you may want to consider:
Have you created automations before? They aren't hard to get started but are very powerful and can be tricky. What's nice here is that you would be starting out with a simple automation!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christopher,
Thank you for your response :)
To answer your question, yes Iam working on automation and I have already tried automating
Automating stories under Epic, Automating sub tasks under stories or tasks etc.
But like I said I am unable to create (Automate) Epic which contains a story and a sub tasks insider the story and I tried various methods already.
EPIC ---->STORY 1 -------> Sub task 1+sub task 2+Sub task 3
Can you pls let me know if there is any branching methods/options which I can use here or merging of two automations. If so pls let me know how can we do that.
Thank you so much again for helping me out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Athira,
Good question - I'm glad you mentioned the branching methods/options.
This will require two automations. The first automation will run, perhaps manually, on the Epic to create the associated Stories. The key will be to add something to this first automation which can be a trigger for the second automation, which will then create the subtasks. You could add a custom field to the issue which is called "CBA" (Created by Automation) and when the first automation runs, enter the text "yes" into the CBA field. The second automation can be run automatically, watching any newly created Story to see if text "yes" exists in the CBA field. If so, it will then create the subtasks.
Let me know if you have any follow-on questions. I don't have time right now to mock this up in my test instance, but I should later on!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Athira,
One more thing.
I saw your comment and screenshot about a sub-task being created under the epic.
When you are creating your automation, make sure in the "then" section that it is to create a new issue. Select issue type of "story".
In the field "choose fields to set" make sure to choose Epic Link and "copy from trigger issue". This will associate the newly created Story to the Epic.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Trudy Claspill your solution above (Jan 25th) helped me so much. I have been searching and searching for this solution. I was able to create Epic>Story>Sub-tasks>Story>subtasks...etc.
I was hoping for Epic>Story>Task>Subtask, but your solution is great and I think I might have been over complicating anyway.
Thanks for the assistance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.