Skip to main content

CYP - Message Assigned User

This workflow is included in the Local Government Essentials - Task Allocation and Types Package package.

Description​

Emails or texts based on settings defined on task type.

Properties​

This workflow has the following properties.

PropertyValue
NameCYP - Message Assigned User
Codeworkflows_cYPMessageAssignedUser_8a9b0bc0c0383999fd40b1af
TypeWorkflow
ContextPackage
EnabledYes
TagsCauseway
Runs onWorking days and hours only (Both)
Log retention30 days

Trigger​

The system triggers this workflow when items of the design below are edited. Where attributes are listed, an edit to anything else is ignored.

PropertyValue
Workflow typeEvent workflow
Applies toTasks with task types
EventsEdit
CollectionsLive
Attributes listened forattributes_tasksTeam  (Team)
attributes_tasksTeamMember  (Team Member)
Output modeManyItems  (Runs once for all items)
Can be triggered by other workflowsYes (indirectly, via item changes)

Actions​

This workflow runs 18 actions, in the order shown in this simplified diagram. Every action's full settings are in the configuration below.

Configuration​

The full configuration of this workflow, including every action's parameters.

Show configuration (654 lines)
{
"trigger": {
"dodiCode": "designInterfaces_tasksWithTaskTypes",
"collections": [
"Live"
],
"events": [
"Edit"
],
"attributesListeningFor": [
"attributes_tasksTeam",
"attributes_tasksTeamMember"
],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": true
},
"actions": [
{
"actionId": "837f1ba20882b6377199c12b",
"designCode": "designs_workflowFilterAction",
"description": "Filter to Live Collection",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"dodiCode": "designInterfaces_tasksWithTaskTypes",
"collectionCode": "Live",
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
]
}
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8cf126c6907219a84ef6cfad",
"designCode": "designs_workflowRelationAction",
"description": "Task type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_tasksWithTaskTypesTaskType"
}
}
],
"variables": [],
"actions": [
{
"actionId": "80b3b4e82b12e958d8ef61f8",
"designCode": "designs_workflowFilterAction",
"description": "Filter to configured for email to assigned user/team",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_taskTypeList_8a63fe9dd1667361be296c4f"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_taskTypeListV2EmailAssignedUser_84517a168ab6fdddf7bd684b"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "813b0413472892d997900210",
"designCode": "designs_workflowOutputAction",
"description": "Get the context back to the tasks",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"inputParent": 2,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designInterfaces_tasksWithTaskTypes",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "80c5f52a56ce50ee34be52a7",
"designCode": "designs_workflowRelationAction",
"description": "Find team members",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_tasksTeam.attributes_teamsMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8fae0963ca4dcb6fb23d68b4",
"designCode": "designs_workflowFilterAction",
"description": "Filter to Team Leaders",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_teamMembers"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_teamMembersRole"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c053c45f14dec5f68402cd8"
]
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "88015c896abbc335a30d4772",
"designCode": "designs_workflowRelationAction",
"description": "Find the user",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_usersTeamMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "88a09fe491a645a3f23e0570",
"designCode": "designs_workflowMessageAction",
"description": "Email the leader about their newly assigned tasks",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageType",
"value": [
"5c66bcd44b4d4259071069de"
],
"attributeType": "Link"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageText",
"value": "New task(s) have been generated and assigned to your team(s)."
}
},
{
"attributeCode": "attributes_workflowMessageActionRecipientName",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersUsername"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionLinkedItems",
"attributeType": "Link",
"value": {
"inputParent": 3,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionEmailAddress",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersEmail"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionEmailSubject",
"value": "New task assigned",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionSingleInstance",
"value": false
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
},
{
"actionId": "8d0758d9e8599b1eeb2ce70b",
"designCode": "designs_workflowRelationAction",
"description": "Find the assigned user",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_tasksTeamMember^attributes_usersTeamMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "831c0924544b9e6a955165ff",
"designCode": "designs_workflowMessageAction",
"description": "Email the assigned user about their newly assigned tasks",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageType",
"value": [
"5c66bcd44b4d4259071069de"
],
"attributeType": "Link"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageText",
"value": "New task(s) have been generated and assigned to you."
}
},
{
"attributeCode": "attributes_workflowMessageActionRecipientName",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersUsername"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionLinkedItems",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionEmailAddress",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersEmail"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionEmailSubject",
"value": "New task assigned",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionSingleInstance",
"value": false
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
},
{
"actionId": "8010721a8dbee749046164e1",
"designCode": "designs_workflowFilterAction",
"description": "Filter to those configured to recieve sms notifications",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_taskTypeList_8a63fe9dd1667361be296c4f"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_taskTypeListV2TextAssignedUser_82fd20bb2db2e9cbc0324449"
}
},
{
"type": "Boolean",
"properties": {
"value": true
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "867dcc6bd047ce9e219d10a5",
"designCode": "designs_workflowOutputAction",
"description": "Get the context back to the tasks",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"inputParent": 2,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designInterfaces_tasksWithTaskTypes",
"attributeType": "String"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8c56e634736d44db12d15c4d",
"designCode": "designs_workflowRelationAction",
"description": "Find team members",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_tasksTeam.attributes_teamsMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8adb1906051d2694f058a914",
"designCode": "designs_workflowFilterAction",
"description": "Filter to Team Leaders",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designs_teamMembers"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_teamMembersRole"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"5c053c45f14dec5f68402cd8"
]
}
}
]
}
]
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8decbd91b7ef8d6f144feeab",
"designCode": "designs_workflowRelationAction",
"description": "Find the user",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root^attributes_usersTeamMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "87f85c64b058c0d51e668bfa",
"designCode": "designs_workflowMessageAction",
"description": "Send SMS to the leader about their newly assigned tasks",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageType",
"value": [
"5c66bcd44b4d4259071069df"
],
"attributeType": "Link"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageText",
"value": "New task(s) have been generated and assigned to your team(s)."
}
},
{
"attributeCode": "attributes_workflowMessageActionRecipientName",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersUsername"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionLinkedItems",
"attributeType": "Link",
"value": {
"inputParent": 3,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionMobileNumber",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersAdditionalDetailsMobile_8bfe3f1fe75ef69170745292"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionSingleInstance",
"value": false
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
},
{
"actionId": "83bb9a6f82f7ac54feedb3ca",
"designCode": "designs_workflowRelationAction",
"description": "Find team members",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_tasksTeamMember^attributes_usersTeamMembers"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8d30886f747cc3ffd766f860",
"designCode": "designs_workflowMessageAction",
"description": "Send SMS to the assigned user about their newly assigned tasks",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageType",
"value": [
"5c66bcd44b4d4259071069df"
],
"attributeType": "Link"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionMessageText",
"value": "New task(s) have been generated and assigned to you."
}
},
{
"attributeCode": "attributes_workflowMessageActionRecipientName",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersUsername"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionLinkedItems",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_workflowMessageActionMobileNumber",
"attributeType": "String",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_usersAdditionalDetailsMobile_8bfe3f1fe75ef69170745292"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowMessageActionSingleInstance",
"value": false
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
}
]
}
]
}