Dear All,
I'm trying to write a simple Behaviour server script for my requirement.
I'm trying to keep a custom field Hidden/ disappear when the issue picker custom field has some value(Means if any issue linked) and the custom field should appear if there is no value entered in issue picker custom field.
def nrv = getFieldByName("IssuePickerField");
def r2=getFieldByName("FieldToBeHidden");
r2.setHidden(true);
r2.setRequired(false);
def rvcount = nrv.getValue();
if(rvcount == "")
{
r2.setHidden(false);
r2.setRequired(true);
}
I even tried to change if(rvcount == "") into if(rvcount == "NULL"), it doesn't work.
Please help me on how to get this working.
Thanks for your help!
Regards,
Mohan