Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
CI's under Active Change Window not being flagged in Maintenance - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • CI's under Active Change Window not being flagged in Maintenance
KB0864491

CI's under Active Change Window not being flagged in Maintenance


1138 Views Last updated : Aug 22, 2024 public Copy Permalink
KB Summary by Now Assist

Issue

When a change is active for a CI, the default Maintenance rule "CI in Change Window" doesn't appear to execute because alert management rules are still firing for CIs on the Affected CI list that are supposed to be in maintenance.

Release

Any release.

Cause

Most Probable Cause:

Only the CI attached to the change request in the cmdb_ci field will be taken into consideration for the evaluation for the maintenance calculation and not the CI's in the affected CI's related list.

Resolution

1. OOB, we do not have any way to insert the CI's in the affected list (apart from the actual one in the form itself) into the "em_impact_maint_ci" table.
2. A new maintenance rule needs to be created to query the task_ci table and insert it into the "em_impact_maint_ci" table.

Note: This maintenance rule should be based on the status of the change since you would want the CI's to meet the same requirements as mentioned below.

Maintenance rule "CI in change window" will populate the "em_impact_maint_ci" table only if all the following Conditions match.
- Change request is Approved.
- Change request is one of the following state (Scheduled, Implement, Open, Work In progress), we specifically query for the state values (state in (-2,-1, 1, 2),
- The change request window is active.
Note: Also if the Choice list for the state (Scheduled, Implemented, Open, work in Progress) is custom mapped to any of the other values other than (-2,-1,1,2), the maintenance rule will ignore it and CI will not be updated in the em_impact_maint_ci table.

Note: Please test this in a non-prod instance first before implementing this in your prod. Also note that the specific business logic may be different based on your needs and should be adjusted as needed.

 


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.