I have developed a couple different conditions and custom hooks for ScriptRunner. Is it possible to "install" these so that other users can select them. For example for the Post Receive Email hook I have a customized template that I would like other project admins to be able to select and use, possibly tweaking it. It would be great if it should be displayed when they click expand on the examples. For another hook, I created a custom hook which would be nice to have listed as a choice in the Scripts Pre hooks.
Apologies for the late reply. You currently can't do this without taking the current script and modifying it, effectively having a copy of it that you then place under one of your script roots.
The original script can be found if you unzip the JAR file and go to: com/onresolve/scriptrunner/canned/bitbucket/events/email/StashSendCustomEmailPostReceive.groovy
The conditions are a bit more complicated you'll need to check what's returned in com.onresolve.scriptrunner.canned.bitbucket.util.BitbucketConditionUtils#getConditionParam and add to the examples in the same format.
Hope this helps.
Every team in the world is unique, and so Atlassian believes that each and every team's best way of working needs to be molded to their unique circumstances – ...
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!
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot