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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

211 views 3 7
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