ServiceNow get parent CI in the service mapping hierarchy (impacted Services) (Event Management)
thanks to this article
(also check this relationship for event management
/nav_to.do?uri=sys_relationship.do?sys_id=92a423c993372200833b76df067ffbc9
)
example:
var grAlert=new GlideRecord('em_alert');
if (grAlert.get('number', 'Alert00152xx')){
var ciu = new CIUtils();
var services = ciu.servicesAffectedByCI(grAlert.cmdb_ci);
gs.print(services);
}
(ServiceNow )
Comments
Post a Comment