You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm completely new to JIRA Script Runner. I tried doing the research to figure out how I can automate the addition of 15 subtasks upon parent issue creation, but could not get any code to work.
I'm currently on the Script Console. Can someone provide me with detailed steps from the very beginning on how to add the script for this purpose?
I believe the easiest way for you to do this would be to use the built-in create sub-task post function. You can get to this by going to your workflow > then click Add a Post Function > then click Script Post Function > finally click Create a sub-task. You'll have to make one of these post-functions for each sub-task you want to make, so if you want to make 15 sub-tasks, create 15 post functions.
You could also custom code this, but for ease-of-use sake I would recommend the above method even though it is a bit tedious.
Please let me know if you need any further help!