It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

create child ticket

i want configure following functionality.

I want to create child ticket just after create parent ticket rather create separately and link.


how can configure this functionality on my instance.





4 answers

1 accepted

0 votes
Answer accepted


Just a quick update about this question in order to better clarify it:

You can easily create a sub-task from an existing parent issue by navigating to parent issue > click more actions (•••) > Create Sub-task in Jira server, or Clicking in Create subtask () at Jira Cloud.

When it comes to Automation:

Jira Cloud - You can automatically create sub-tasks when creating its parent by using the inbuilt Automation functionality (Project settings > Automation). It's easy and very intuitive:

Jira automation 

Jira Server - You will need a third-party plugin to achieve this. Here are some options:

Automation for Jira - Server 

ScriptRunner for Jira 

Hi Gayan,

You can do this using the Power Scripts add-on.

There is a video tutorial walking you through in detail here.

Here is the code:

string issue_project = project;
string issue_parent_key = key;
string issue_type = "Sub-Task";
string issue_summary = "New subtask for " + key;
string issue_priority = "Minor";
string issue_description = "";
string[] issue_components;
date issue_dueDate = currentDate() + "30d";
interval issue_estimate = "1h 30m";
string issue_security_level;
string[] issue_fields_mapping;

if(customfield_14822 == "Yes") {

string subTaskKey = createIssue(project, issue_parent_key, issue_type, issue_summary, issue_priority, issue_description, issue_components, issue_dueDate, issue_estimate, issue_security_level, issue_fields_mapping);

linkIssue(subTaskKey, issue_parent_key, "Relates");

0 votes

You'd need to hack the create functionality, dealing with the cases where people do not want to create a sub-task straight away as well.

Could you use a "create sub task" post-function on the create transition to generate one automatically?

Is there any possibilities to control child ticket create (lest say if user checked particular check box)  

You'll need code that can pick up the data on the parent issue and decide whether to create sub-tasks or not.

Do you have any of the scripting add-ons? 

To create a child I must hack the create functionality?!? LAME!

No, just click "create sub-task" in the new issue.  Or automate it. 

Most people do not want to have to create a sub-task.

The answer seems to be  that it is not easy to do.  Would I be better off creating a feature and then the children would fall under the feature?   Still does not address the possible need for grandchildren. 

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you