Feature/breached incident count by group#2057
Feature/breached incident count by group#2057mitalizope wants to merge 3 commits intoServiceNowDevProgram:mainfrom
Conversation
GlideAggregate script to count the breached incidents by assignment group.
ravichandra1998g
left a comment
There was a problem hiding this comment.
Hello @mitalizope
We appreciate the effort you’ve put into this contribution. We’ve labeled it as hacktoberfest-accepted so it still counts toward your Hacktoberfest progress. Thank you for contributing!
For Hacktoberfest, we’re aiming for high-quality contributions providing real-world use developer cases.
This will not be merged as this is a standard GlideAggregate script example and there are many - examples of this use case in ServiceNow Community. You can see some of the recently merged PRs to know the kind of code snippets we are aiming for.
Expanded Snippets: Code snippets reused from the ServiceNow Documentation or API References are acceptable only if they are expanded with additional context or variations).
Please reopen/ submit a new one after adding more dynamic context/use cases that are more suitable for the open source
PR Description:
This pull request adds a new GlideAggregate API snippet.
It defines a function getBreachedIncidentCountByGroup that uses GlideAggregate on the task_sla table to calculate the total number of incidents with breached SLAs, grouped by their assignment group.
Use Case:
• Provides a backend method to retrieve SLA-breached incident counts as per assignment group.
• Useful for automation, scheduled jobs, API integrations, and custom dashboard widgets.
• Offers a performance-efficient alternative to GlideRecord loops.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions