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:
Hi @Andrew Zajicek and welcome to the community!
If you're open to an alternative solution, I highly recommend Deep Clone for Jira. With Deep Clone, you can configure Post Function Clones that avoid looping issues by offering detailed control over the cloning process. You can:
Hi Andrew,
In order to diagnose what is causing the loop, I would advise raising a support ticket here so that the ScriptRunner Support team can investigate what is causing the loop issue you are seeing.
As for creating issues, I would advise creating a run script post function and then using HAPI which is the Helpful API that has just been released for ScriptRunner.
Using Hapi you will be able to create issues and set field values on them using a natural language syntax and you can see an example of creating issues in the documentation page located here.
I hope this information helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.