Hello,
i have developed a basic plugin for jira.
however when i load script in to the script file it is not working.
i need to change values of custom field even on pop up using javascript.
my js
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
alert("Hello!!!");
alert(document.getElementById("customfield_10000"))
document.getElementById("customfield_10000").value = "working";
});
my webresource.
<web-resource key="myPlugin-resources" name="myPlugin Web Resources">
<dependency>com.atlassian.auiplugin:ajs</dependency>
<context>atl.admin</context>
<context>atl.general</context>
<context>atl.popup</context>
<resource type="download" name="myPlugin.css" location="/css/myPlugin.css"/>
<resource type="download" name="myPlugin.js" location="/js/myPlugin.js"/>
<resource type="download" name="images/" location="/images"/>
<context>myPlugin</context>
</web-resource>