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 Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,310 views 8 11
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