Script!!

kusumgautam
Tera Contributor

How to Automatically Close Resolved Incidents After 30 Days or older?

 

Thanks

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kusumgautam 

 

No need of any script, it is OOTB available. Set the incident property. OOTB its 7 days

 

AGLearnNGrow_0-1739886703449.png

 

 

you can change it if required. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

maheshkhatal
Mega Sage

@kusumgautam Go to sys_properties.LIST and set the property  glide.ui.autoclose.time set to desired value and there is no need of any script here.

See the screenshot given below

AUTOCLOSE.JPG

If my response helped you please mark this as helpful.

Thank you,

Mahesh.

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kusumgautam 

 

No need of any script, it is OOTB available. Set the incident property. OOTB its 7 days

 

AGLearnNGrow_0-1739886703449.png

 

 

you can change it if required. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@kusumgautam 

As per screenshot shared by Atul, resolved incidents are OOB closed by 7 days

Simply update the property value to 30

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

maheshkhatal
Mega Sage

@kusumgautam Go to sys_properties.LIST and set the property  glide.ui.autoclose.time set to desired value and there is no need of any script here.

See the screenshot given below

AUTOCLOSE.JPG

If my response helped you please mark this as helpful.

Thank you,

Mahesh.

kusumgautam
Tera Contributor

Thank you so much .