Resolved! Suppose print all incident which priority 1 . How put in array please help me ?
var priority1Incidents = [];var gr = new GlideRecord('incident');gr.addQuery('priority', '1');gr.query();while (gr.next()) {var incident = {'number': gr.getValue('number'),'short_description': gr.getValue('short_description'),priority1Incidents.push(...