- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 10:53 AM
Hi Everyone
I would like to know if Is there a way I can route to an specific group of high/critical tickets that are received outside of normal working hours?
Scenario:
7 am to 7 pm tickets should be routed to "AAA support group"
7 pm to 7 am and weekends high/critical tickets should be routed to "BBB support group"
Your help on this will be appreciated
Fabian GR
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 07:57 AM
Neither of those will work, for two different reasons.
Use the below, EXACTLY as is:
var g = new GlideRecord('cmn_schedule');
g.addQuery('name', 'Normal working hours');
g.query();
if (g.next()) {
var sched = new GlideSchedule(g.sys_id);
var d = new GlideDateTime();
if (sched.isInSchedule(d))
current.assignment_group.setDisplayValue("C360 Ops Triage");
else
current.assignment_group.setDisplayValue("PEGA-Coverage Review");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 07:57 AM
Neither of those will work, for two different reasons.
Use the below, EXACTLY as is:
var g = new GlideRecord('cmn_schedule');
g.addQuery('name', 'Normal working hours');
g.query();
if (g.next()) {
var sched = new GlideSchedule(g.sys_id);
var d = new GlideDateTime();
if (sched.isInSchedule(d))
current.assignment_group.setDisplayValue("C360 Ops Triage");
else
current.assignment_group.setDisplayValue("PEGA-Coverage Review");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 10:09 AM
Bingo!!!! It worked
Thank you some much for all your support, you rock!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 12:05 PM
Great! Happy to help
Please remember to mark my last reply as the correct answer so others can find and use this thread in future.
Sent from my iPhone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 02:08 PM
Fabian Galdamez wrote:
Scenario:
7 am to 7 pm tickets should be routed to "AAA support group"
7 pm to 7 am and weekends high/critical tickets should be routed to "BBB support group"
As a matter of interest... what happens if a ticket is routed to BBB group at 6am and an hour later they go off-shift? Is that ticket ignored for 12 hours until BBB group come back on-shift?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017 07:21 AM
Good point Dave,
I appreciated your observation on this