Hi Grant,
We are using below triggers and spells
There are two scripts triggers configured with different numbers i.e.
POST_VALIDATE z_affected_resource_check() 112;
POST_VALIDATE z_secondary_category_check() 116;
Which I have changed to
POST_VALIDATE z_affected_resource_check() 10000;
POST_VALIDATE z_secondary_category_check() 10500;
For z_affected_resource_check here is spell.
cr::z_affected_resource_check(...) {
string zmsg;
if(tenant == (uuid)"36EFD232881E0749A3DFB8518FA9DFF9")
{
return;
}
else
{
if(is_null(affected_resource))
{
zmsg=format("Configuration Item has to be set on this ticket before it can be saved.");
set_error(1);
set_return_data(zmsg);
return;
}
}
}
For z_secondary_category_check here is spell.
cr::z_secondary_category_check(...) {
string zmsg;
if(tenant == (uuid)"36EFD232881E0749A3DFB8518FA9DFF9") {
if(is_null(zSecondaryCategory)) {
zmsg=format("Secondary Category has to be set on this ticket before it can be saved.");
set_error(1);
set_return_data(zmsg);
return;
}
} else {returns;
}
}
I will try these testing in postman and will update my findings soon.
Thanks
MM