- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 06:36 AM
Hello,
Anyone here can share how they created a breakdown (manual or automatic) so that I can display on a Breakdown widget Incidents that are aging with breakdown of the following:
0-30 days
31-60 days
61-90 days
90+ days
This should be reference to the Age of the ticket. How can I capture the age of the ticket also?
Regards,
Diane
Solved! Go to Solution.
- Labels:
-
Performance Analytics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 07:10 AM
Diane,
The out of the box Incident Premium dashboard, Process by Age tab, and the automated indicator of "Number of open incidents" already breakdowns aging by aging groups. You could model after how that breakdowns for the aging works. OOTB the Bucket Group of "Incident Age Ranges (Days)" is used. You could either change those ranges, or create new version leaving the OOTB version alone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2020 07:10 AM
Diane,
The out of the box Incident Premium dashboard, Process by Age tab, and the automated indicator of "Number of open incidents" already breakdowns aging by aging groups. You could model after how that breakdowns for the aging works. OOTB the Bucket Group of "Incident Age Ranges (Days)" is used. You could either change those ranges, or create new version leaving the OOTB version alone.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-25-2023 08:35 AM
Hello,
Is there any solution for which we can calculate age in days excluding weekends and then send them to appropriate age bucket(like >60 days etc...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2023 05:57 AM
Hi Nasreen2,
Yes it can be done, at least we found a way to do this.
1. You need a schedule entry to track the business days, and if you want to exclude holiday's or anything like that. This would be in the Schedule [cmn_schedule] table.
2. We created a scripted breakdown.
3. Then a bucket group for the scripted breakdown.
Here is a sample of the script we used.
Note: Our system admins do not want us hard coded sys_id's in scripts so we used a property to track the sys_id for the schedule.
var getBusinessDuration = function(x, y) {
// Get business schedule
var busScheduleSysID = gs.getProperty(<Property for the sys_id of calendar>);
var gsBusiness = new GlideSchedule(busScheduleSysID);
var busDuration = new GlideDuration();
// GlideSchedule.duration method takes 2 input parameters of type GlideDateTime
var created = new GlideDateTime();
created.setValue(x.dateNumericValue());
var updated = new GlideDateTime();
updated.setValue(y.dateNumericValue());
// Get duration based on schedule
busDuration = gsBusiness.duration(created, updated);
// Get the numeric value instead of string to use in further calculations, otherwise it will result in NaN
return busDuration.getNumericValue();
};
var busHours = function(x, y) {
return getBusinessDuration(x, y) / (60 * 60 * 1000); // Conversion from milliseconds to hours
};
busHours(current.sys_created_on, current.sys_updated_on);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2023 05:37 AM
Hi Brian,
- I have tried the above process but it is not working. I am getting as no data to display in the widget of the PA dashboard even after successful insertion of records in the data collection job. So Could you please be more specific about this and help me out in achieving this?
- I have given the sysId of Schedule Entry (not Schedule) in the system property and I have used the Bucket group which is already available in the system. And for the Breakdown source I have used [pa_buckets] as Facts table.
Please refer to the below screenshots:
Many Thanks,
Nasreen