Initialiser Function : Can we have more than one?

Jeff Louwerse November 23, 2015

I started using the initialiser function in Scritprunner behaviours instead of our old method and it worked great for the first one I created.  I however went to create a second one for something else and it will not fire.  even a basic "log.error("HERE")" does not run.

So I went to my first one that works perfectly and simply added the second function to it so that when the first one is done, it then runs the second one... and that works.

This leads me to believe that I can have only one?  Is this correct?  I can't seem to find any documentation on it other than an example on how to create one.

 

JIRA 6.4.11 and SR 3.1.4

1 answer

1 accepted

2 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.
November 23, 2015

Multiple initialisers was in a recent release, 4.1.2, and the equivalent version for JIRA 6.x

Jeff Louwerse
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.
November 23, 2015

Thanks. looking forward to 2016 and a new budget year. Got a work around by creating a master initializer that then calls other functions as required.

Suggest an answer

Log in or Sign up to answer