SLARepair - repairByGlideRecord(GlideRecord gr)

Repair the task SLAs associated with the passed in GlideRecord.

Table 1. Parameters
Name Type Description
gr GlideRecord Specify a GlideRecord for a table that is (or extends) contract_sla, task_sla, or task.
Table 2. Returns
Type Description
void

Find problems created last month with a priority of 2

var gr = new GlideRecord("problem");
gr.addQuery("sys_created_on", "ON", "Last Month@javascript:gs.beginningOfLastMonth()@javascript:gs.endOfLastMonth()");
gr.addQuery("priority", "2");
gr.query();

Call SLA repair for the GlideRecord

var repair = new SLARepair();
repair.repairByGlideRecord(gr);