Hi,
How can I automatically creates few sub-tasks with fix summary I define for each subtasks on JIRA issue Creation (Story / task any normal issue type) & also put quick check like if Template (Custom field - type select list single choice) = Template 1 then create sub-task else ignore.
Based on that I will put another post function with same script & check if Template = Template 2 then create sub task else ignore it.
I want to use groovy script for this as script runner is providing option to put inline groovy or file groovy.
Capture 2016-03-01 at 15.44.10.png
Currently I am able to create sub tasks based on Script runner post function "Create Sub task" but if I need to create 15 sub tasks then I need to add separate 15 PFs in workflow & if need to modify summary then again update 15 Post functions !!
Capture 2016-03-01 at 15.38.21.pngCapture 2016-03-01 at 15.39.55.png
So please suggest if you are using groovy for auto creating subtasks. I already searched old answers but as I am new to groovy I am not getting where to put name/id of my project & where to put name of my subtasks. also I need small check of custom field as I mentioned above. So please suggest on this.
Thanks,
Hardik