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.