Creating Sub tasks for existing Tasks in Jira Project

Swaroop Kumar
Contributor
June 8, 2023

Hi Team

I have 150 Tasks already existing in my Jira project. I'd like to create 4 sub-tasks for each of the task. The sub-tasks name will be the same for every task.

Is there an automation rule that could do this?

3 answers

3 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 8, 2023

Hi Swaroop,

Yes, you could create a Scheduled rule to run once a day or something - timeframe doesn't really matter. Then add a JQL that identifies your 150 issues to the scheduled rule. HOWEVER, I suggest doing a JQL for a single issue to test it first - something as simply as Key = ABC-123 for the key of your issue. 

Then add actions for creating your 4 sub-tasks. 

Save and publish your rule. Then click on the blue Run rule button to run the rule immediately. 

If everything looks good, you can adjust your JQL to include more issues (be sure to exclude the issue you tested so you don't create more sub-tasks for it). 

Save and publish and then Run rule. 

0 votes
Answer accepted
Rilwan Ahmed
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 8, 2023

Hi @Swaroop Kumar ,

Go to Project settings --> Automation --> Create new rule

Select trigger as Scheduled and select some random time

In JQL section, type your query for which tickets you need sub-tasks to be created and click Save
image.png

Select Action --> Create Sub-Tasks. Fill the subtask descriptions and go on adding the required sub-tasks to the list

image.png

Give a name and save the rule. Now you will get "Run Rule" option. Just click on it to run rule  all existing tickets now and disable/delete the rule. 

0 votes
Answer accepted
Nihat UZGAN
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 8, 2023

Hi @Swaroop Kumar ,

I can offer you a workaround. Create an automation using Automation for Jira, in the first step put a condition that will run when a comment is added. in the second step put the action to create subtasks and write the summary that will be the same for all of them. Then select the 150 issues you mentioned with bulk change and add the comment by clicking edit issues. This will create sub-task in all issues where comment is added

Screenshot 2023-06-08 at 14.29.16.pngScreenshot 2023-06-08 at 14.31.10.pngScreenshot 2023-06-08 at 14.31.39.png

You can change the condition you will put in the first row according to yourself. If you want, you can add an empty transition to the workflow and prepare an automation that will run when this transition is triggered. Then you can trigger that transition in the issues you select via Bulk Operation.

Kind Regards,
Nihat

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events