How to exclude an additional state in Maintenance Rule, CI in change window

AM24
Giga Guru

This is a description of the maintenance rule, "CI in Change Window."

AM24_0-1753976447152.png

The OOTB code just involves this,

  (function findCisInMaint(){
   
	  var impactManager = new SNC.ImpactManager();
	  var cis = impactManager.getCisInActiveChangeWindow();
 
	  return cis;
  })();

 We want to exclude one more state, specfically the state with a value of 1. It seems like getCisInActiveChangeWindow() detects changes with values of -2, -1, 1, and 2, and it doesn't seem like that function can be modified. Would there be another way to exclude a state with a value of 1 as well? Thanks.

1 ACCEPTED SOLUTION

AM24
Giga Guru

Might have solved it. Just used a gliderecord on change and searched for state 1. Then, I looked for matching entries on cis, which I converted to an array, and then filtered those out.

View solution in original post

2 REPLIES 2

Swapna Abburi
Mega Sage
Mega Sage

Hi @AM24 

As the script include specified in the maintenance rule is not editable, you can create a custom script in this maintenance rule or create a new maintenance rule and deactivate the OOTB one.

 

Let me know if you need assistance with the script.

 

 

AM24
Giga Guru

Might have solved it. Just used a gliderecord on change and searched for state 1. Then, I looked for matching entries on cis, which I converted to an array, and then filtered those out.