CIUtils - servicesAffectedByCI(String CI_sys_id)

Determine which business services are affected by a specific CI.

Table 1. Parameters
Name Type Description
CI_sys_id String The sys_id of a configuration item (cmdb_ci)
Table 2. Returns
Type Description
Array An array of sys_id values for cmdb_ci records downstream of (or affected by) the specified item.

var CIUtil = new CIUtils();
//get a server record
var server = new GlideRecord("cmdb_ci_server");
server.addQuery("name", "lnux100");
if ( {
  //get the affected services, array of ids
  var serviceIds = CIUtil.servicesAffectedByCI(server.getUniqueValue());
  for (var i=0; i < serviceIds.length; i++) {
    //get the service record
    var service = new GlideRecord("cmdb_ci_service");
Client Services
IT Services
Bond Trading