Question about scriptrunner Clone & Link postfunction

Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2015

Can I apply this postfunction recursevely? For instance:

I create issue type X and using this postfuncion 6 times I create (and link to X) 6 issue type Y and for each issue Y I use this postfunction 3 times to create (and link to Y) 3 issue types Z.

Is this OK?

1 answer

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 23, 2015

Should work fine. The post-functions that run on Y are effectively independent of the ones that have run on X. 

Cloning may well Y to Z should also create the link X to Z, so you may want to manage that with the checkLink closure.

Suggest an answer

Log in or Sign up to answer