Hi,
I have a message custom field(edit)and I am trying to hide that field on edit screens of certain status.
Eg:- I would like hide the field for status=Submit and show when status=create.
Can someone help me on this as I am not able to do it with Behavior plugin and field appearance plugin.
I tried with Jquery as below
AJS.$(document).ready(function () {
JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e,context) {
var status = AJS.$("#status-val").text().trim();
if (status == "Created"){
AJS.$('#TextField_PR_Approval').show();
}
else
{
AJS.$('#TextField_PR_Approval').hide();
}
});
});
Above code is working for tranistions but not on Edit screen.
Looking for a help on this