How do you start an SLA from a business rule?

Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2013 01:13 PM
Does anyone have an example of how to start an SLA from a business rule?
Labels:
- Labels:
-
Orchestration (ITOM)
-
Service Mapping
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2013 01:26 PM
var getTask = new GlideRecord('task');
getTask.addQuery('number', current.number);
getTask.query();
if (getTask.next())
{
var sla = new GlideRecord('task_sla');
sla.sla = '3ceafd6570700580454301019e82e802'; // add the sysid of the SLA you want to start
sla.task = getTask.sys_id;
sla.insert();
}
This is how I've been doing this and it works great for me.