hello folks,
I am trying to develop a plugin for jira and I'm having issues with jquery. I am pretty sure that its already part of the framework and all i need to do is include it but nothing seems to be working.
I have tried putting this in my atlassian-plugin.xml file
<web-resource key="jquery" name="jquery" >
<dependency>jira.webresources:jira-global</dependency>
<resource type="download" name="jquery.js" location="/includes/javascript/jquery.js" />
</web-resource>
I have tried it without the dependency as well
I have tried putting #requireResource("jira.webresources:jira-global")
in my velocity template and that doesnt work either. THis is my js in my input.vm file
<script type="text/javascript">
jQuery(function($) {
$('.questions').hide();
});
</script>
Everything I seem to do just results in the Uncaught ReferenceError: jQuery is not defined
at a bit of a loose end now not really sure what to try next!