Greetings,
I am working on creating some scriptrunner automation within jira and am having trouble. I need to trigger the creation of multiple Issues during the Epic transition to “Open" using a "post function", and I've been using the "Clone Issue" function. I figured I could just create multiple "clone issue" functions to create all the issues I need, but for some reason even before setting up more than one, this single function loops infinitely creating an endless number of issues when it should only be doing it once.
Any idea where it is going wrong and creating the loop, or is there a better way to be going about doing this in the first place?
Here is how I have it set up currently:


