You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Incident resolution percentile by assignment group
2
+
3
+
## What this solves
4
+
Leaders often ask for P50 or P90 of incident resolution time by assignment group. Out-of-box reports provide averages, but percentiles are more meaningful for skewed distributions. This utility computes configurable percentiles from incident resolution durations.
5
+
6
+
## Where to use
7
+
- Script Include callable from Background Scripts, Scheduled Jobs, or Flow Actions
8
+
- Example Background Script is included
9
+
10
+
## How it works
11
+
- Uses `GlideAggregate` to get candidate groups with resolved incidents in a time window
12
+
- For each group, queries resolved incidents ordered by resolution duration (ascending)
13
+
- Picks percentile ranks (for example 0.5, 0.9) using nearest-rank method
14
+
- Returns a simple object per group with count, average minutes, and requested percentiles
15
+
16
+
## Configure
17
+
-`WINDOW_DAYS`: number of days to look back (default 30)
18
+
-`GROUP_FIELD`: field to group by (default `assignment_group`)
0 commit comments