Stop SLA timer

Ashish Raj
Kilo Contributor

Hi Developers 

 

I need your help in one particular case .

 

In my instance i have one SLA which is running even if the ticket is in cancelled state .

To stop the SLA i wrote one background script to change the stage of the task_sla table record for the particular SLA .

 

My script is 

var gr=new GlideRecord('task_sla');
gr.get('sys_id value');
gr.stage='completed'; 
gr.update();

 

This is changing my SLA's  Stage value to completed but still the timer is not stopping .

SLA is still progressing in time .

Need your help to figure this out .

 

Thanks and regards

Ashish 

6 REPLIES 6

This is an incredibly old ticket by SN standards, but if the SLA should be triggering and isn't, you can navigate to the task_sla record for your ticket and use the UI Action for Repair. That should resolve the issue

G Balaji
Kilo Guru

Could you share Stop condition definition, your background script and SLA state after you tried changing the ticket state?