Metric Retroactive Script
Thu Jun 02 2022 10:38:44 GMT+0000 (Coordinated Universal Time)
Saved by
@vedo
var gr = new GlideRecord('sc_req_item');
gr.addEncodedQuery("stateIN3,4,7^sys_created_onONThis year@javascript:gs.beginningOfThisYear()@javascript:gs.endOfThisYear()");
gr.setWorkflow(false);
gr.query();
while (gr.next()) {
gs.eventQueue('metric.update', gr, '[state,active]', gr.sys_mod_count, 'metric_update');
}
content_copyCOPY
Comments