Specific SLA Repair - is this the correct approach?

madhuv
Tera Contributor

Hi ,

 

We have recently created some SLAs for business need to measure some parameters.

 

Business wanted these new SLAs to be calculated for the all the existing tickets not just the newly created Tickets.

 

Yes, SLA Repair is the option I am also looking too!!.

 

But I didnt want the SLA repair to recalculate already attached. Since existing Tickets already have 4 to 5 SLAs attached and more than 10 K tickets to be targeted, didnt feel it would be right approach.

 

Meanwhile, I was trying to figure out a way to only do the of repairing act based on SLAs.

 

Say, I take a one SLA and apply the repair script on that SLA , it should create the task_sla (and do calculation).

 

Looks like I am bit succeeded , it created task_sla record for the existing records.

 

I wanted to check with you about this approach and the script I used to get this done.

 

Please let me know if any other impacts or consequences using this. 

 

Script I used:

var sladef=new GlideRecord('contract_sla');
sladef.get('1b34bc101b707d10368421fbbb4bcb6d');//sys id of the SLA definition
new SLARepair().repairByGlideRecord(sladef);

1 REPLY 1

Peter Bodelier
Giga Sage

Hi @madhuv,

Yes, this looks to me like the correct way to go.


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.