Auto close resolved incidents after 3 business days

snuser10
Kilo Expert

Trying to figure out how to auto close an incident after 3 business days of being in resolved state.   I tried following link (How to close ticket after 3 business days )however, end date here has the correct date but not correct time.   Any one has a solution for that? Appreciate your help!

14 REPLIES 14

yes i have. Unfortunately it doesn't do it by business days.


Chuck Tomasi
Tera Patron

This is built in functionality. The system is already set up to auto close after three days.



What is the underlying issue or question here?


Issue is that the OOTB functionality doesn't account for business days, it does it by calendar days. How to close ticket after 3 business days   tries to do it by business days, however, getEndDateTime() returns 5pm after 3 business days - it doesn't give the correct time.   Ie. if the ticket is resolved on 9/22/17 at 8am getEndDateTime() gives 9/25/17 5pm not 9/25/17 8am. Do you know how to get correct endtime here?