Hooks API Support

We now support writing your hooks using the new hooks API Atlassian have introduced in Bitbucket 5.

This is most relevant if your writing your own custom hooks as the API easily provides you with the data you need, reducing the cost involved in getting up and running with writing a custom hook. It also comes in useful if you want your hook to be applied to both changes coming in through the UI and for a regular Git push.

Please see the custom pre-hooks and post-hooks section for further examples of this.

Clone ScriptRunner Items

You now have the option to clone configured ScriptRunner items when you use the built-in clone repository script. These include event handlers, pre/post-hooks and merge checks.


For how-to questions please ask on Atlassian Answers where there is a very active community. Adaptavist staff are also likely to respond there.

Ask a question about ScriptRunner for JIRA, for for Bitbucket Server, or for Confluence.