How to stop incident creation during CR window

Manikandan Subr
Kilo Guru

Hi,

We have set up monitoring process where Events gets triggered from the monitoring tools. Which inturn creates alerts and Alert correlates to incidents. 

We have a requirement where when a CR is raised, for that CI during the planned start time and Planned end time no incidents should be created. 

How do i achieve this?

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Have a before insert business rule on incident table and check whether the incident creation time i.e. now time is in between planned start time and planned end time then abort the transaction and show some message

Is the record getting created due to some integration ?

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

robertgeen
Tera Guru

Buji,

What version of ServiceNow are you on? This should happen automatically out of the box if you are creating those incidents using event management. Take a look in the maintenance rules section and you should see once for CI in change window. Outside of that it would just be a matter of adding a filter on your alert management rule to only trigger if alert.maintenance != true. if you are on the older versions you may have to check the scheduled job that checks for alerts that need to have an incident created and add a check on the glide record that pulls back the alerts to not pull back those where maintenance = true. Hope this helps.