Initialiser Function : Can we have more than one?

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

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published 11 hours ago in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

35 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you