Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

ChangeCollisionHelper- Global

The ChangeCollisionHelper script include provides helper methods found in the Change Management - Collision Detector (com.snc.change.collision) plugin.

Use these methods in server side scripts, or when using Ajax calls on the client. You must have the Change Management - Collision Detector plugin installed to use these methods.

Parent Topic:Server API reference

ChangeCollisionHelper - addCiToChangeAffectedCis(String ci, String changeId)

Adds the CI to the change's affected CI list.

NameTypeDescription
ciStringThe sys_id of the configuration item
changeIdStringThe change record's sys_id
TypeDescription
void 

ChangeCollisionHelper - getAffectedCisByChangeId(String changeId)

Returns the Affected CI sys_ids for the given change.

NameTypeDescription
changeIdStringA change record's sys_id
TypeDescription
ArrayAn array of sys_ids of affected CIs.

ChangeCollisionHelper - getBlackoutsByDate(GlideDateTime startDate, GlideDateTime endDate)

Returns any blackout that overlap the period defined by startDate and endDate.

NameTypeDescription
startDateGlideDateTimeThe beginning date
endDateGlideDateTimeThe ending date
TypeDescription
ArrayAn array of blackouts (blackoutId:stringSpan).

ChangeCollisionHelper - getChangesWithAffectedCi(String ci, GlideDateTime startDate, GlideDateTime endDate)

Returns changes scheduled in the timespan (defined by startDate and endDate) that have the given CI in their Affected CIs list.

NameTypeDescription
ciStringThe configuration item's sys_id
startDateGlideDateTimeThe beginning date
endDateGlideDateTimeThe ending date of the time span
TypeDescription
ArrayAn array of change record's sys_ids

ChangeCollisionHelper - getChangesWithCi(String ci, GlideDateTime startDate, GlideDateTime endDate)

Returns the changes that are in the timespan (startDate, endDate) and that are linked to the given CI.

NameTypeDescription
ciStringThe configuration item's sys_id
startDateGlideDateTimeThe beginning date
endDateGlideDateTimeThe ending date of the time span
TypeDescription
ArrayAn array of sys_ids for change records

ChangeCollisionHelper - getCiMaintenanceSchedule(String ci)

Returns the Maintenance Schedule for a CI.

NameTypeDescription
ciStringThe configuration item's sys_id
TypeDescription
void 

ChangeCollisionHelper - getDependants(String ci)

Returns all the CIs that depend on the given CI.

NameTypeDescription
ciStringA configuration item's sys_id
TypeDescription
ArrayAn array of CIs

ChangeCollisionHelper - getDependencies(String ci)

Returns all the CIs that the given CI depends on.

NameTypeDescription
ciStringThe configuration item's sys_id
TypeDescription
ArrayAn array of CIs

ChangeCollisionHelper - isCiInAffectedCis(String ci, String changeId)

Check if an CI is already in the change's affected CIs list.

NameTypeDescription
ciStringThe sys_id of the configuration item
changeIdStringThe change record's sys_id
TypeDescription
BooleanTrue if the CI already is in the change's affected CI list.

ChangeCollisionHelper - isDateInCiMaintenanceWindows( GlideDateTime startDate, GlideDateTime endDate, String maintenanceWindow)

Checks if the time span defined by startDate and endDate falls in the CI's maintenance window.

NameTypeDescription
startDateGlideDateTimeThe beginning date
endDateGlideDateTimeThe ending date
maintenanceWindowStringThe configuration item's sys_id
TypeDescription
BooleanTrue if the time span is in the CI's maintenance window