We have renamed LineManager to IT Manager and Requester to ChangeTechnician in the change module. We would like to auto-assign the IT Manager to the ChangeTechnician based on the change that each IT Manager will be responsible for. I have written a script however, it is not currently working. Can someone take a look and tell me what I am doing incorrectly? We are using PGSQL on 9.4.9413.
var INITIATOR = $CS.getValue("INITIATOR");
if (INITIATOR == "John Doe")
{
$CS.setText("TECHNICIAN","Jane Doe");
}
else if (INITIATOR == "John Wick")
{
$CS.SetText("TECHICIAN","Jane Wick");
}
else
{
$CS.SetText("TECHICIAN","Jane Sims");
}