I need to create multiple sub-tasks using script runner in groovy language, one for each value in the custom fields of an issue created. For example
I imported an issue from excel and it has 4 custom fields values. So when the issue is imported and created, I need to trigger a listener to create 4 sub-tasks for those 4 custom fields.
So what is the best way to trigger a listener for creating multiple subtasks for a single issue using a groovy script in script runner?