0

Implantation Steps:

  1. Create Workflow with trigger condition when state is on hold.
  2. Add Time wait for 24 hrs.
  3. Again check Condition, is ticket is still onhold.
  4. 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