Auto Close Incident after 5 days of resolution only for P1/P2

SanikaK
Tera Contributor

Currently incident is auto-closed after 3 days of resolution in ServiceNow. Want to know if it is technically feasible to have a 5 days auto-closure set only for P1/P2 incidents and not for all.

There is OOO system property ''glide.ui.autoclose.time" (attaching the screenshot for reference). This property is not set for any specific priority.


3 REPLIES 3

SanikaK
Tera Contributor
 

Tanushree Maiti
Kilo Patron

Hi @SanikaK ,

 

As you are correctly pointed, OOB autoclose set up is applicable for incident excluding major incident INC ticket.

The same situation we went through long back and got Support's  reply that no oob configuration is not in place on it ->we can do customization on that.

 

We ran a fix script  to auto close legacy data  once in prod  and scheduled with specific filters (only for P1/P2), so that  after mentioned days for resolved tickets ->script can close the ticket.

 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

AshishKM
Kilo Patron

Hi @SanikaK ,

For this business need, you need to replicate the OOTB functionality and customize as per your need.

Check the following objects for more details and update accordingly.

 

Scheduled Job = Autoclose Incidents, this job is triggering this business rule "incident autoclose" and this BR is reading that system property for auto closer day(s).

 

You can copy the scheduled job with new name, copy the BR with new name and update the scheduled job with new BR name. Create new system property for 5 days and use the same in new BR. ( just keep this logic separate without updating the existing code )

 

AshishKM_0-1776139995904.png

 

BR with P1/P2 filter condition

AshishKM_1-1776140087584.png

 

Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution