Implantation Steps:
- Create Workflow with trigger condition when state is on hold.
- Add Time wait for 24 hrs.
- Again check Condition, is ticket is still onhold.
- Check Today is weekend?
// answer = ifScript(); function ifScript() { var getDate = new GlideDateTime(); if (getDate.getDayOfWeekLocalTime() == "6" || getDate.getDayOfWeekLocalTime() == "7") { return 'yes'; } return 'no'; }
5. Send Notification to Caller
6. Repeat same steps 3 time and resolve ticket.
7. Create inbound action if user replies the ticket state change to in progress
3- Strike Rule Workflow ServiceNow
Working Code Edited question August 7, 2023