Widget use cases when creating a new widget.
In this example we want to create a bar chart widget that shows the following:
The average time it takes to close incidents per day
Classified according to incident types
Incidents that occurred during the previous seven days
Click the add + button from the Widgets Library.
Select Incidents.
Enter a name in the Widget name field.
Click the Bar graph icon.
In the Query tab, define the following:
Data source: Incidents
Query:
-category:job and -status:Closed
Date range: Last 7 days
In the Operations tab:
Change Count to Average.
From the dropdown list, select Custom calculations on fields.
Type
remediationsla.startDate-detectionsla.startDate
Group by: Date Occurred
Second Group by: Type
In this example, we want to view the following data:
How many incidents occurred in the last 7 days
Closed vs not closed (pending or active)
Line chart
Click the add + button from the Widgets Library.
Select Incidents.
Enter a name in the Widget name field.
Click the Line graph icon.
In the Query tab, define the following:
Data source: Incidents
Query:
-category:job
Date range: Last 30 days
In the Operations tab, the first group is
Date Occurred
.In the second group, from the dropdown list, select
status
.Click Custom Group by to add the following data:
In this example, we want to create the following incident type widget:
The average time for open incidents that are late
Grouped by 2 groups (group A and group B) and by type
In a bar chart
Click the add + button from the Widgets Library.
Select Incidents.
Enter a name in the Widget name field.
Click the Bar graph icon.
In the Query tab, define the following:
Data source: Incidents
Query:
-status:Closed and category:job
Date range: Last 30 days
In the Operations tab, add the following information:
In the Values section, select Average.
From the dropdown list, click Custom calculations on fields.
Type
{now}-remediationsla.dueDate
.We want to see the average time that incidents are late (from today’s date). We add a variable
{now}
, so that we do not have to change the date.In the Group by field, select Owner and then click Custom Group by.
Add the following, using users from your organization.
In the Second group by field, from the dropdown list, select Type.
Select the checkbox for Create and display a group for all remaining values and then click Save.
In the Visuals tab, select the following:
Horizontal options - Axis name:
TEAM
.Vertical options - Axis name:
REMEDIATION TIME
.