Hey everyone, I’ve been trying to figure out if there’s a way to make JIRA create sub-tasks automatically when I make a new issue. I’m not sure if this is possible or if I’m missing something obvious.
Here’s what I want to do:
- I’ve set up a custom Standard Issue Type called ‘ProjectTask’
- I also made two Sub-task Issue Types: ‘Planning’ and ‘Review’
What I’m hoping to do is have JIRA automatically create two sub-tasks (one ‘Planning’ and one ‘Review’) whenever I create a new ‘ProjectTask’ issue. Is this something JIRA can do out of the box? Or do I need to use a plugin or some kind of scripting?
I’d really appreciate any help or suggestions. Thanks in advance!
As someone who’s implemented this in a large-scale JIRA environment, I can confirm it’s definitely possible. We used the ScriptRunner plugin, which is incredibly powerful for these kinds of customizations. Here’s what worked for us:
We wrote a Groovy script that fires when a ‘ProjectTask’ is created. The script checks the issue type and, if it matches ‘ProjectTask’, automatically creates the ‘Planning’ and ‘Review’ sub-tasks. We also added some logic to populate certain fields in these sub-tasks based on the parent task.
One tip: make sure your script is efficient. In our case, we had to optimize it because it was causing slight delays in issue creation when we had many users working simultaneously.
Also, consider the permissions. The script runs with elevated privileges, so you might need to adjust permissions if you want certain users to be able to see or modify these auto-generated sub-tasks.
It took some trial and error, but once we got it working, it was a huge time-saver for our project managers. Good luck with your implementation!
hey mate, i’ve actually done this before! u can use ScriptRunner plugin for JIRA. it lets u write scripts to make sub-tasks automatically. just install it, make a script that runs when u create a ‘ProjectTask’, and have it create ur ‘Planning’ and ‘Review’ sub-tasks. it’s pretty neat once u get it working!
I’ve worked on a similar solution in my JIRA projects. Although this functionality isn’t available by default, it can be achieved with the right tools. A common approach is to use ScriptRunner for JIRA. In my experience, you install the plugin, then create a script that triggers when a ‘ProjectTask’ is created, and within the script, you add the necessary logic to create both ‘Planning’ and ‘Review’ sub-tasks.
This method requires some scripting expertise but offers great flexibility. I recommend testing your implementation in a development environment before moving to production.