Auto Close Inc after 2 business days

Anil Karthik N
Tera Contributor

Hi All,

 

I'm working on customizing auto-close logic for incidents. By OOB incidents are auto-closed after 7 days but my requirement is to auto-close after 2 business days(excluding holidays and weekends). I tried using GlideSchedule for this, but I'm running into issues with methods like schedule.subtract() not working as expected. Does anyone have a workaround for subtracting business days from current date.

I'm making changes in OOB BR: incident autoclose

 

Thanks,

Anil

8 REPLIES 8

Hello @Anil Karthik N 

Thank you for your response!

To adjust the auto-close time, navigate to the 'sys_properties' table, filter by the property name 'glide.ui.autoclose.time', and update its value from 7 to 2.

 

Refer the screenshot below:

JuhiPoddar_0-1732507049355.png

 

"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"

 

Thank You
Juhi Poddar

 

 

Hi @Juhi Poddar ,

 

I've made changes to this system property, but it is taking as 2 days instead of 2 business days.

 

Thanks,

Anil

Hello @Anil Karthik N 

Yes, that's the functionality in ootb BR you mentioned.

 

Thank you 

Juhi Poddar 

Hello @Anil Karthik N 

In addition to my previous reply please do not make any changes in the ootb business rules. Changing the property in sys_properties table will do the work.

 

"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"

 

Thank You
Juhi Poddar