Skip to main content

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.

PropertyValue
NameMy Team's Safety Inspections - Default
Item ID682731240e128dc5a1eab3a5
TypeStandard
CollectionTemplate
ContextPackage
Show percentage barsNo
Default appNot 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 pointSourceTargetsIconColour
My Team's open safety inspectionsQueryHighways Safety Inspectionsicon-inspection-visual  #4baaea  
My Team's safety inspections due this monthQueryHighways Safety Inspectionsicon-inspection-visual  #f9bc13  
My Team's safety inspection due with 5 daysQueryHighways Safety Inspectionsicon-inspection-visual  #e4734f  
My Team's overdue safety inspectionsQueryHighways Safety Inspectionsicon-inspection-visual  #df412c  
My Team's safety inspections completed this monthQueryHighways Safety Inspectionsicon-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"
}
}
]
}
]
}
]
}
}
]
}