How to stop running sla
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2017 09:47 AM
Hi
How to stop my running sla. please someone guide me
Labels:
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2017 04:21 PM
I think this should do the trick in a background script or such
var taskSLA = new TaskSLA(/* sys_id or task_sla GlideRecord */ task_sla);
taskSLA.setUpdateTime(/* glide_date_time, GlideDateTime or string "Value" */ end_time); //Optional if you want to set the end_time to calculate from
taskSLA.updateState(TaskSLA.STATE_COMPLETED); // or TaskSLA.STATE_CANCELLED