A bucket group is used to create a special breakdown source
that you can use with a scripted breakdown. A bucket group divides the range of values that the
script returns into discrete buckets. The breakdown sorts records into these
A bucket group is paired with a script. When you have a script that
collects a range of values, you can define a bucket group to divide those values into discrete
buckets. Create a breakdown source based on the bucket group. Then you create a breakdown that
uses that breakdown source and is mapped to the script. The breakdown uses the script to sort
records into the buckets. For example, you have a script that calculates the age of records in
the incident table and a bucket group that divides those ages into <1 day, 2–5 day, 6–30 day,
and 30+ day buckets. If you have a breakdown that uses this bucket group and script, and you use
this breakdown with the 'Number of open incidents' indicator, currently open incidents are sorted
into these age buckets.
You can write a bucket group for an existing script, or you can create the bucket group and
then write the script. Both must exist before you can create the breakdown.
Note: The same script can be used with any number of bucket groups. Also, in principle any scripts
that returned the same kind of data could be used with the same bucket group.