How to cancel custom task SLA using fix script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 03:52 AM
Hi All,
How to cancel custom Task SLA, I have Imported OOB SLA definition and made custom SLA active false.
Note: both OOB and custom SLA are running on the same Workflow.
Table: incident
Thanks!
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2022 04:05 AM
Hi,
Please take this sample script and modify accordingly.
var gr = new GlideRecord('task_sla');
gr.addQuery('task' , 'STARTSWITH', 'INC');
gr.addQuery('stage', 'inprogress');
gr.query()
while(gr.next())
{
gr.stage = 'completed';
gr.setWorkflow(false);
gr.update();
}
Please hit like and mark my response as correct if that helps
Regards,
Musab
Regards,
Musab