Categorize the data in different category or segment which helps in ServiceNow Reporting#1899
Merged
Atul-LNG merged 6 commits intoServiceNowDevProgram:mainfrom Oct 7, 2025
Merged
Conversation
adding the line 2 state values and defining variables and removing the log statements
Atul-LNG
approved these changes
Oct 7, 2025
Contributor
|
Hi @spnegi Thanks for your contribution! I’ve reviewed your submission and can see that you've addressed all the previous comments — including the clarifications in the current PR, the updated README, and comments in the JS file. I'm happy to approve this. Keep contributing, and do encourage your colleagues to participate in Hacktoberfest as well! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description:
Find out all the cases with the difference in their create date and current date and put them in different buckets of their age. Then you can report on the aging. With this you will be able to run the Bucket Group reporting on tables without using PA.
In ServiceNow Performance Analytics (PA), a Bucket Group is used to categorize or group data into defined ranges or segments, which helps make reports and indicators more meaningful and easier to analyze. This code will help you to categorize the tickets based on any defined ranges or segments you want. Based on this defined ranges or segments you can get any king of reporting without using PAs in ServiceNow.
This code lets you create custom ranges (buckets) to classify numerical data (like durations, scores, or counts) into meaningful labels.For example, instead of showing raw numbers like 2, 7, 14, 30 days, you can define buckets such as:
0–5 days → “Very Fast”
6–10 days → “Fast”
11–20 days → “Average”
20 days → “Slow”
Then, these labels can be displayed in your dashboards, or reports, making the data easier to interpret.
Real time user cases:
Score or metric segmentation Divide customer satisfaction scores into Low, Medium, High ranges.
Priority or risk scoring Convert numeric risk scores into descriptive ranges (Low Risk, Medium Risk, High Risk).
Also, SLA uses the tickets to be defined in SLA number or breach date. It doesnt let you define any segment or categorize the data. It helps you define the reporting basis on your category or segment
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