Repository Hooks with dynamic config form

I'm writing a BitBucket post-receive hook and I want the config form to be dynamic. Similar to the Atlassian Post-Receive WebHooks plugin where you can specific additional urls.

How can I add javascript to fire if the user clicks on "add additional resources", etc.

I've tried variations of "client-resource" and "web-resource" in atlassian-plugin.xml

and I've tried including the javascript file from the config form template via <script src=...>.

So far nothing has worked. I verified the javascript file is included in the jar file but when I view source is Chrome or Safari the javascript file is nowhere to be found.

0 answers

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

638 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot