Repair SLA button deletes some of my SLA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-03-2018 12:47 PM
Hellow community!
There is a button on incident and RITM form that should repair SLA. It work's on target=resolution perfectly, but i've got a response SLA that counts time between the specialist click "New"(create incident or RITM) and "Save" (after incident or RITM been registred) - 20-30 sec always.
When i'm trying to "repair SLA" - this method deletes my "response" SLA away from table! I can't catch why and when! 50%50, sometimes 3-4 click on same incident is OK, and on 5-th SLA deletes.
Got anybody some ideas?
Found "scripts/SLARepairClient.js" - that contains
'''
repairByFilter: function(table, filter)
{ this.request = new SLARepairClient.Request(table); this.request.filter = filter; this._validateRequest();
'''
If i could't find reason, at least can i use this part of script to add to that UI Action button to filter out all "respose" SLA that this button fixing?
Here is a code of this button
ScriptLoader.getScripts([ '/scripts/SLARepairClient.js' ], function() {});
function repair() {
var slaClient = new SLARepairClient();
slaClient.callback = function(response) {
g_navigation.reloadWindow();
};
slaClient.repairBySysId(g_form.getTableName(), g_form.getUniqueValue());
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2018 12:00 PM
Here is an SLA difinition.
The most strange when i creating even NEW INC or RITM, and start clicking Repair SLA: it recounts 4-5 times correctly, (instead 9 sec it could be 8 sec after repair), and at 5-6 time, it deletes and that's all. Then if click Repair SLA it will not appear ever. Stange behaviour...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2018 07:17 AM
So if Assigned to is NOT empty - the SLA should cancel, according to your Start conditions.
BTW - your start conditions should be true through the life of the ticket, except when Stop is true. So if Start conditions Active is true, Stop should contain Active is false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2020 04:16 AM
Hi KaChan!
You wrote 'Found "scripts/SLARepairClient.js" '.
Where you found this script?
In which table or anywhere else?
Answer pls.
Thanks.