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');
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter