Hello,
Very simple question, but I've been struggling with it for several hours already.
I want to hide one custom field from all screens using JS.
Here is fragment of atlassian-plugin.xml:
<web-resource key="S" name="S" ><resource type="download" name="a.js" location="js/a.js" />
<context>jira.view.issue</context>
</web-resource>
My JS a.js:
AJS.toInit(function(){
alert("Hello World");
AJS.$('#customfield_10120').closest('div.field-group').hide();
}); I've read dozens of corresponding forum's questions&solutions but nothing worked for me, field is not hidden.
What I'm missing?
Thanks in advance!