Auto Assign Assignment Group based on Time of Day (Schedule)

cmcdevitt1
Kilo Contributor

We would like to auto assign incidents to assignment groups based on the time of day (and CI of course). A kind of follow the sun approach. Has anybody done this and how did you implement it?   I was looking at the "Assignments" module, but there was no OOB concept of schedules.

Thanks in advance for your input.

Chris

8 REPLIES 8

Doug,



This looks very promising! Thank you!


Hi 

Please find the below conditions and suggest me any possibilities to achieve .

  1. If a request is submitted Mon through Fri from 7am to 5pm EST, assign task to ......(Y group)...
  2. If a request is submitted Mon through Fri from 5pm to 7am EST, or anytime during a weekend (Sat or Sun), assign task to (....z group).

yed
Tera Contributor

Hi Naresh,

Did you get a solution for this ? 

Please share if you have a solution.

 

Thanks

cmcdevitt1
Kilo Contributor

Hi,

 

The above code is exactly how I accomplished this. I set up a schedule (System Scheduler -> Schedules) , then used isInSchedule to see if the current time was within the schedule window and I sent it to team A, else I sent it to team B.

 

https://docs.servicenow.com/bundle/kingston-application-development/page/app-store/dev_portal/API_reference/GlideScheduleScoped/concept/c_GlideScheduleScopedAPI.html