Join the Community
ServiceNow Community
About rk_in
User Activity
Posts
Replies
No posts to display.
Re: Display Category and count and the list of incidents in the category
11-30-2024
var categoryCounts = {};var gr = new GlideRecord('incident');gr.query();while (gr.next()) {var category = gr.getValue('category');var incidentNumber = gr.getValue('incident_number');if (!categoryCounts[category]) {categoryCounts[category] = {count: 0...