Hi!
We need a Behaviours JavaSctript script, which hides one of the organisations of ServiceManagement, so the members don't receive mails, when one of them create a ticket.
But I can't get the value of the organisations field to compare it.
If the organization is the 158, it should disappear
getFieldById("customfield_10002").setVisible(false); // organization field
if( getFieldById("issuetype").setValue("10463")) {
getFieldById("customfield_10002").setVisible(true);
} else{
getFieldById("customfield_10002").getId("158").setVisible(false);
}
It doesn't work... Please could you help me community?