The CreatorCon Call for Content is officially open! Get started here.

incident auto close br

Gary Larsen
Mega Sage

I have a requirement for incidents with a particular CI selected to not auto close   

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Gary Larsen 

update the OOTB business rule with the encodedQuery to skip particular CIs

Line 31 I added

AnkurBawiskar_0-1747320389737.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

6 REPLIES 6

 

I updated line 31 to this and now it is working as expected 

        gr.addQuery('cmdb_ci','NOT IN','6a56a92193aca250bfa5b3aa6aba109b'); //add sysid here
        gr.query();
        while(gr.next()) {

Thank you much for the help