How to create sub tasks automatically on parent issue creation?

Hello, my requirement is that I want to create sub tasks automatically and assign automatically to the selected users in multi user selection. So how can I achieve this. Actually my requirement is I want to divide the expenditure amount among users. So I took the "Paid Amount" text field and "Shared Among" multi user selection field. So suppose 600 is entered  in  "Paid Amount" so creating on parent issue for expenditure of 600 and 3 sub tasks for collecting 200 from 3 respective users.

So, how can I achieve this. Thank you in advance 

6 answers

1 accepted

1 vote

There are a few add-ons that will provide you with a "create sub-task on issue create" function, but it sounds to me like you probably need one of the more flexible ones as you have some logic to do - not just a fixed "create X subtask(s)".  I'd use the script-runner to do this.

2 votes

There's now a very easy to automatically create sub-tasks with Automation for JIRA!

You can easily create sub-tasks with our 'create sub-tasks' action:

create-sub-tasks.png

For a full list of available conditions and actions see: http://codebarrel.io/available-rule-components/

We also have a number of conditions you could use to check the value of the paid amount field.

Hi,

have you tried to use Issue Templates? There is option to create subtask on create and on selected trasition:

https://intenso.atlassian.net/wiki/display/IT/Create+template's+subtask

I hope I've helped you.

Best Regards

How to create multiple issues - advanced example shows an example that will create multiple issues dependent on the selections for a multiple selection field including support to prevent duplicate issue creation. This uses the Create Issue post function from Create on Transition for JIRA.

Hi, 

You can use this add-on that I created for this. Automates creation of common issues and sub tasks. 

https://marketplace.atlassian.com/vendors/1214232/obi-wan-soft-llc

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,296 views 14 20
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot