How to stop incident creation during CR window
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:52 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2019 11:59 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2019 05:01 AM
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.