My Team's Safety Inspections - Default
This hub widget is included in the Highways package.
Description
This widget is a template, so it's offered by the From template menu when a user adds a widget to a hub.
Properties
This widget has the following properties.
| Property | Value |
|---|---|
| Name | My Team's Safety Inspections - Default |
| Item ID | 682731240e128dc5a1eab3a5 |
| Type | Standard |
| Collection | Template |
| Context | Package |
| Show percentage bars | No |
| Default app | Not specified, each data point opens in the most suitable app for its type |
Data points
This widget has 5 data points, each querying the items below.
| Data point | Source | Targets | Icon | Colour |
|---|---|---|---|---|
| My Team's open safety inspections | Query | Highways Safety Inspections | icon-inspection-visual | #4baaea |
| My Team's safety inspections due this month | Query | Highways Safety Inspections | icon-inspection-visual | #f9bc13 |
| My Team's safety inspection due with 5 days | Query | Highways Safety Inspections | icon-inspection-visual | #e4734f |
| My Team's overdue safety inspections | Query | Highways Safety Inspections | icon-inspection-visual | #df412c |
| My Team's safety inspections completed this month | Query | Highways Safety Inspections | icon-inspection-visual | #44a541 |
Configuration
The full configuration of this widget, including each data point's query.
Show configuration (704 lines)
{
"hasBars": false,
"type": "Standard",
"dataPoints": [
{
"id": "9a6b3670-3252-11f0-90f0-67b674159b82",
"name": "My Team's open safety inspections",
"style": {
"icon": "icon-inspection-visual",
"colour": "#4baaea"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_tasksStatus",
"attributes_tasksWithTaskTypesTaskType",
"attributes_tasksTeam",
"attributes_inspectionsInspectionNumber",
"attributes_tasksDescription",
"attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b",
"attributes_tasksIdentifierAssetReferece",
"attributes_tasksIdentifierTaskLocation",
"attributes_tasksRaisedTime",
"attributes_tasksIssuedTime",
"attributes_tasksEstimatedStartTime",
"attributes_tasksEstimatedEndTime",
"attributes_tasksStartTime",
"attributes_tasksCompletionTime",
"attributes_tasksTargetTime",
"attributes_tasksCancelledTime",
"attributes_filesAttachableAttachments",
"attributes_inspectionsRaisingJobsRaisedJobs",
"attributes_inspectionsRaisingDefectsRaisedDefects"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root.attributes_tasksTeam.attributes_teamsMembers^attributes_usersTeamMembers"
}
},
{
"type": "AlloyId",
"properties": {
"parameterName": "currentUserId"
}
}
]
},
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c73"
]
}
}
]
}
]
}
]
}
},
{
"id": "85d780e0-3254-11f0-90f0-67b674159b82",
"name": "My Team's safety inspections due this month",
"style": {
"icon": "icon-inspection-visual",
"colour": "#f9bc13"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_tasksStatus",
"attributes_tasksWithTaskTypesTaskType",
"attributes_tasksTeam",
"attributes_inspectionsInspectionNumber",
"attributes_tasksDescription",
"attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b",
"attributes_tasksIdentifierAssetReferece",
"attributes_tasksIdentifierTaskLocation",
"attributes_tasksRaisedTime",
"attributes_tasksIssuedTime",
"attributes_tasksEstimatedStartTime",
"attributes_tasksEstimatedEndTime",
"attributes_tasksStartTime",
"attributes_tasksCompletionTime",
"attributes_tasksTargetTime",
"attributes_tasksCancelledTime",
"attributes_filesAttachableAttachments",
"attributes_inspectionsRaisingJobsRaisedJobs",
"attributes_inspectionsRaisingDefectsRaisedDefects"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c73"
]
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksTargetTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "StartOfMonth",
"value": [
"0.00:00:00.000"
]
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksTargetTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "EndOfMonth",
"value": [
"0.00:00:00.000"
]
}
}
]
},
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root.attributes_tasksTeam.attributes_teamsMembers^attributes_usersTeamMembers"
}
},
{
"type": "AlloyId",
"properties": {
"parameterName": "currentUserId"
}
}
]
}
]
}
]
}
},
{
"id": "c510a750-3254-11f0-90f0-67b674159b82",
"name": "My Team's safety inspection due with 5 days",
"style": {
"icon": "icon-inspection-visual",
"colour": "#e4734f"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_tasksStatus",
"attributes_tasksWithTaskTypesTaskType",
"attributes_tasksTeam",
"attributes_inspectionsInspectionNumber",
"attributes_tasksDescription",
"attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b",
"attributes_tasksIdentifierAssetReferece",
"attributes_tasksIdentifierTaskLocation",
"attributes_tasksRaisedTime",
"attributes_tasksIssuedTime",
"attributes_tasksEstimatedStartTime",
"attributes_tasksEstimatedEndTime",
"attributes_tasksStartTime",
"attributes_tasksCompletionTime",
"attributes_tasksTargetTime",
"attributes_tasksCancelledTime",
"attributes_filesAttachableAttachments",
"attributes_inspectionsRaisingJobsRaisedJobs",
"attributes_inspectionsRaisingDefectsRaisedDefects"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c73"
]
}
}
]
},
{
"type": "Or",
"children": [
{
"type": "And",
"children": [
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksTargetTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"5.00:00:00.000"
]
}
}
]
}
]
},
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"5.00:00:00.000"
]
}
}
]
}
]
}
]
},
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root.attributes_tasksTeam.attributes_teamsMembers^attributes_usersTeamMembers"
}
},
{
"type": "AlloyId",
"properties": {
"parameterName": "currentUserId"
}
}
]
}
]
}
]
}
},
{
"id": "f9fc7980-3254-11f0-90f0-67b674159b82",
"name": "My Team's overdue safety inspections",
"style": {
"icon": "icon-inspection-visual",
"colour": "#df412c"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_tasksStatus",
"attributes_tasksWithTaskTypesTaskType",
"attributes_tasksTeam",
"attributes_inspectionsInspectionNumber",
"attributes_tasksDescription",
"attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b",
"attributes_tasksIdentifierAssetReferece",
"attributes_tasksIdentifierTaskLocation",
"attributes_tasksRaisedTime",
"attributes_tasksIssuedTime",
"attributes_tasksEstimatedStartTime",
"attributes_tasksEstimatedEndTime",
"attributes_tasksStartTime",
"attributes_tasksCompletionTime",
"attributes_tasksTargetTime",
"attributes_tasksCancelledTime",
"attributes_filesAttachableAttachments",
"attributes_inspectionsRaisingJobsRaisedJobs",
"attributes_inspectionsRaisingDefectsRaisedDefects"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c73"
]
}
}
]
},
{
"type": "Or",
"children": [
{
"type": "And",
"children": [
{
"type": "NotExists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksTargetTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"0.00:00:00.000"
]
}
}
]
}
]
},
{
"type": "And",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksEstimatedEndTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "Now",
"value": [
"0.00:00:00.000"
]
}
}
]
}
]
}
]
},
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root.attributes_tasksTeam.attributes_teamsMembers^attributes_usersTeamMembers"
}
},
{
"type": "AlloyId",
"properties": {
"parameterName": "currentUserId"
}
}
]
}
]
}
]
}
},
{
"id": "1f2bf9b0-3255-11f0-90f0-67b674159b82",
"name": "My Team's safety inspections completed this month",
"style": {
"icon": "icon-inspection-visual",
"colour": "#44a541"
},
"type": "CustomQuery",
"aqs": {
"type": "Query",
"properties": {
"attributes": [
"attributes_tasksStatus",
"attributes_tasksWithTaskTypesTaskType",
"attributes_tasksTeam",
"attributes_inspectionsInspectionNumber",
"attributes_tasksDescription",
"attributes_highwaysInspectionsNotesAndObservations_67b6107070676efd8020302b",
"attributes_tasksIdentifierAssetReferece",
"attributes_tasksIdentifierTaskLocation",
"attributes_tasksRaisedTime",
"attributes_tasksIssuedTime",
"attributes_tasksEstimatedStartTime",
"attributes_tasksEstimatedEndTime",
"attributes_tasksStartTime",
"attributes_tasksCompletionTime",
"attributes_tasksTargetTime",
"attributes_tasksCancelledTime",
"attributes_filesAttachableAttachments",
"attributes_inspectionsRaisingJobsRaisedJobs",
"attributes_inspectionsRaisingDefectsRaisedDefects"
],
"collectionCode": "Live",
"dodiCode": "designs_highwaysSafetyInspections_67b7444de716149b9424fdb7",
"parameters": [
{
"name": "currentUserId",
"type": "AlloyId",
"title": "Current user ID"
}
]
},
"children": [
{
"type": "And",
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5bc5bdd281d088d177342c76"
]
}
}
]
},
{
"type": "GreaterThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksCompletionTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "StartOfMonth",
"value": [
"0.00:00:00.000"
]
}
}
]
},
{
"type": "LessThan",
"properties": {
"inclusive": true
},
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_tasksCompletionTime"
}
},
{
"type": "RelativeDateTime",
"properties": {
"relativeTo": "EndOfMonth",
"value": [
"0.00:00:00.000"
]
}
}
]
},
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId",
"path": "root.attributes_tasksTeam.attributes_teamsMembers^attributes_usersTeamMembers"
}
},
{
"type": "AlloyId",
"properties": {
"parameterName": "currentUserId"
}
}
]
}
]
}
]
}
}
]
}