Hi everybody,
i'm trying to create a plugin with some javascripts files that will be loaded in create issue pop up screen.
Jira current version is: 5.2.3.
I have found some related question but i didn't manage to find a solution.
In xml file i'm using the following
<web-resource key="test-js" name="javascript">
<dependency>jira.webresources:global-static</dependency>
<description>JavaScript</description>
<resource name="test.js" type="download" location="/js/test.js" />
<context>jira.create.issue</context>
</web-resource>
My javascript file is the following
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
jQuery("#customfield_12300").hide();
});
The problem is that javascript is not loaded at all.
If i use
<context>atl.general</context>
in xml, javascript is loaded.
I don't know if i'm going to use
<context>atl.general</context>
instead of
<context>jira.create.issue</context>
will make page loading slower.
Thanks in advance,
Kostas