Browse topics

Auto-create sub-tasks and update fields in Jira

This guide reveals how to create a Jira automation rule that automatically creates sub-tasks when an issue is created.

By Kev Zettler

Kev is a lead full stack web developer and serial entrepreneur with over a decade of experience building products and teams with agile methodologies. He is a passionate contributor, author, and educator on emerging open source technologies like DevOps, cryptocurrency, and VR/AR. In his free time, he participates in indie game development jams.

New Trigger

The first step is to select a trigger from the New trigger selection screen.

Select a trigger

Next, find the Issue created trigger from the list of triggers

Find the Issue created trigger from the list of triggers

You can also find the Issue created trigger by searching for it in the search bar. Once you have selected the Issue created trigger, click the Save button.

Search for issue created

New Condition

Next we will add a New condition component that will perform an action if the issue type is a Task. Click on the New Condition option on the Add component page.

Add a new condition component

Next, click the Issue fields condition:

Click the issue fields condition

This will direct you to the Issue fields condition configuration page. From the Field drop down, select Issue Type, change the Value to Task, and click the Save button.

Issue fields condition configuration page

New Action

To add an action to the rule, click on the New action item on the Add component page and filter for the Create sub-tasks action. Click the Create sub-tasks item to proceed.

New action item

On the Create sub-tasks page add one or more sub-tasks by clicking the Add another sub-task and fill in the Summary fields as you like. You can also configure the fields that you’d like in each sub-task.

Create subtasks

When you click Add fields on the third sub-task the other two sub-tasks will be created as a separate action. You will be taken to a new Create Issue screen where you can configure additional fields. Click the Save button when finished.

Create additional fields

Turn it on

This brings you to the Add component view where you can name the new Automation. Once you do, click the Turn it on button.

Click the Turn it on button

Try it out

Now that you created and activated a new automation rule, it’s time to try it out! Go back to your project, create a new issue, and set the type to Task.

Try it out

Once you’ve created the new task, the automation rule will activate in the background. You can confirm if the automation rule succeeded by visiting the Audit Log. Navigate to Project Settings -> Automation, find your new Automation rule, and click the Audit Log tab. You should see a view similar to the following:

Visit the audit log

In the Audit log, if you see a row under the column Status labeled SUCCESS you’ve successfully built the automation rule. If you see the label SOME ERRORS, click on the Show More operations links to debug those errors. As you can see in the screenshot above we had to test and reconfigure our automation rule a few times before we were successful. 

Once you have confirmed the automation rule operates successfully, return back to your project and you will see the new sub-tasks!

View your new subtasks
Browse topics

Auto-create subtasks with Jira automation

This guide reveals how to create a Jira automation rule that automatically creates sub-tasks when an issue is created.

By Kev Zettler

Kev is a lead full stack web developer and serial entrepreneur with over a decade of experience building products and teams with agile methodologies. He is a passionate contributor, author, and educator on emerging open source technologies like DevOps, cryptocurrency, and VR/AR. In his free time, he participates in indie game development jams.

New Trigger

The first step is to select a trigger from the New trigger selection screen.

Select a trigger

Next, find the Issue created trigger from the list of triggers

Find the Issue created trigger from the list of triggers

You can also find the Issue created trigger by searching for it in the search bar. Once you have selected the Issue created trigger, click the Save button.

Search for issue created

New Condition

Next we will add a New condition component that will perform an action if the issue type is a Task. Click on the New Condition option on the Add component page.

Add a new condition component

Next, click the Issue fields condition:

Click the issue fields condition

This will direct you to the Issue fields condition configuration page. From the Field drop down, select Issue Type, change the Value to Task, and click the Save button.

Issue fields condition configuration page

New Action

To add an action to the rule, click on the New action item on the Add component page and filter for the Create sub-tasks action. Click the Create sub-tasks item to proceed.

New action item

On the Create sub-tasks page add one or more sub-tasks by clicking the Add another sub-task and fill in the Summary fields as you like. You can also configure the fields that you’d like in each sub-task.

Create subtasks

When you click Add fields on the third sub-task the other two sub-tasks will be created as a separate action. You will be taken to a new Create Issue screen where you can configure additional fields. Click the Save button when finished.

Create additional fields

Turn it on

This brings you to the Add component view where you can name the new Automation. Once you do, click the Turn it on button.

Click the Turn it on button

Try it out

Now that you created and activated a new automation rule, it’s time to try it out! Go back to your project, create a new issue, and set the type to Task.

Try it out

Once you’ve created the new task, the automation rule will activate in the background. You can confirm if the automation rule succeeded by visiting the Audit Log. Navigate to Project Settings -> Automation, find your new Automation rule, and click the Audit Log tab. You should see a view similar to the following:

Visit the audit log

In the Audit log, if you see a row under the column Status labeled SUCCESS you’ve successfully built the automation rule. If you see the label SOME ERRORS, click on the Show More operations links to debug those errors. As you can see in the screenshot above we had to test and reconfigure our automation rule a few times before we were successful. 

Once you have confirmed the automation rule operates successfully, return back to your project and you will see the new sub-tasks!

View your new subtasks

Recommended for you

Templates

Ready-made Jira templates

Browse our library of custom Jira templates for various teams, departments, and workflows.

Product guide

A comprehensive introduction to Jira

Use this step-by-step guide to discover essential features and the best practices to maximize your productivity.

Git Guide

Understanding the Basics of Git

From beginners to advanced experts, use this guide to Git to learn the basics with helpful tutorials and tips.