- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 12:09 AM
Once the SLA is breached the assignment group should be "abc"
so in the business rule i have given condition as "HasBreached is true "
so how to write script in advanced section so that it will set the assignemnet group on incident table
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 09:08 AM
HI,
Use the below..
var gr = new GlideRecord('sc_task');
gr.addQuery('sys_id',current.task);
gr.query();
if(gr.next())
{
gr.assignment_group = "sys id of the group name";
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 09:08 AM
HI,
Use the below..
var gr = new GlideRecord('sc_task');
gr.addQuery('sys_id',current.task);
gr.query();
if(gr.next())
{
gr.assignment_group = "sys id of the group name";
gr.update();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 02:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 08:28 AM
This same thing i want on sc_task table in the sc_task table the assignment group should be change once the SLA is breache