Create multiple subtasks with descriptions using a Script Listener

So, I would like to automatically create subtasks when opening a ticket in a specific project. However I would not like to create a new workflow or change any of the ones I currently have with additional post functions. I would like to this with ScriptRunner Script Listener. If someone has written a similar groovy script, please add it here so I can adapt it to my situation. Thanks in advance! :slight_smile:

There should be a built-in listener for creating subtasks:

Yes, but I need it for tickets with a specific summary, and also need to be able to add a description to the subtasks.