How to write a script in maintenance rule to add ci's to the maintenance

Ankitha2
Tera Contributor

Suppose we have some ci's and we need to add them to the maintenance rule using script

5 REPLIES 5

Rahul Priyadars
Giga Sage
Giga Sage

Generally you do not  tag CIs with a given Rule. You Change CI status and as per ur configured Rule and it will pick .

You can define rules to mark CIs that match the specified criteria as being in maintenance status. The marked CIs populate the Impact Maintenance CIs [em_impact_maint_ci] table.

It will automatically put CIs in em_impact_maint_CI table.

Can you put more details on ur use case.

Regards

RP

Ryan Zulli
ServiceNow Employee
ServiceNow Employee

How can we add additional ci's to change request

Ryan Zulli
ServiceNow Employee
ServiceNow Employee

do you mean other than the "Affected CIs" ?