Skip to main content

Generate Tasks from Reported Issue Type

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

Description​

Generates tasks from task types based on a raised issue with an issue type.

Properties​

This workflow has the following properties.

PropertyValue
NameGenerate Tasks from Reported Issue Type
Codeworkflows_generateTasksFromReportedIssue_8bd0c6fa742955195bfa0227
TypeWorkflow
ContextPackage
EnabledYes
TagsCauseway, Causeway Package
Runs onWorking days and hours only (Both)
Can trigger other workflowsYes (the items it changes and messages it publishes can trigger other workflows)
Log retention30 days

Trigger​

The system triggers this workflow when items of the design below are created.

PropertyValue
Workflow typeEvent workflow
Applies toItems with Reported Issue
EventsCreate
CollectionsLive
Output modeManyItems  (Runs once for all items)
Can be triggered by other workflowsYes (indirectly, via item changes)

Actions​

This workflow runs 8 actions, in the order shown in this simplified diagram. Select an MWR action to open the workflow it runs. Every action's full settings are in the configuration below.

Configuration​

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

Show configuration (254 lines)
{
"trigger": {
"dodiCode": "designInterfaces_itemsWithReportedIssue_8a4d1757846a7cec8ed66fb9",
"collections": [
"Live"
],
"events": [
"Create"
],
"outputMode": "ManyItems",
"canBeTriggeredByWorkflows": true
},
"actions": [
{
"actionId": "89db31f61c5f4e8a45d156bc",
"designCode": "designs_workflowFilterAction",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value": {
"type": "Query",
"properties": {
"dodiCode": "designInterfaces_itemsWithReportedIssue_8a4d1757846a7cec8ed66fb9",
"collectionCode": "Live",
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
]
}
},
"attributeType": "Aqs"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8f973c60ea263866dc31e76f",
"designCode": "designs_workflowRelationAction",
"description": "Get reported issue",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_itemsWithReportedIssueReportedIssue_8e14a378071f1e6d33f41f3d",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "8d046dc6ff40cb803885c5c8",
"designCode": "designs_workflowRelationAction",
"description": "Get task type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_itemsWithReportedIssueReportedIssue_8e14a378071f1e6d33f41f3d.attributes_reportedIssuesTaskType_8cc3a83f32e41da36f38e1e0",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": [
{
"actionId": "8e9b13246ae8b3b08444499a",
"designCode": "designs_workflowRelationAction",
"description": "Get templated task",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_taskTypeTemplate",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": [
{
"actionId": "877949cc6a08ec9c9b84bc40",
"designCode": "designs_workflowOutputAction",
"description": "[WFC] get priority",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"outputAction": "8f973c60ea263866dc31e76f",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_reportedIssuesPriority_8dad1fa6d96e19225dc809d7"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designs_taskPriorities",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionSingleInstance",
"value": false,
"attributeType": "Boolean"
}
}
],
"variables": [],
"actions": []
},
{
"actionId": "8b38c0ffeaa862d8154d2aea",
"designCode": "designs_pdMwrCloneTasks_88c2cae133b0a129e8d59af5",
"description": "Calls the CloneTasks MWR",
"parameters": [
{
"attributeCode": "attributes_pdMwrCloneTasksTaskTypeMapping_82c4e2a3d30d521b74ddac7c",
"attributeType": "Link",
"value": {
"outputAction": "8d046dc6ff40cb803885c5c8",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksParent_8a01f9693ca42ee2fa294d20",
"attributeType": "Link",
"value": {
"outputAction": "89db31f61c5f4e8a45d156bc",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksTaskPriority_839e1d01fd7764f7dae775e5",
"attributeType": "Link",
"value": {
"outputAction": "877949cc6a08ec9c9b84bc40",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksParentAttributeCode_85c17f89d036dc16cfa6be82",
"attributeType": "String",
"value": {
"script": "return Variables.taskImplements.AllValues.Values.Select(x => x.SingleValue).Contains(\"designInterfaces_jobs\") ? \"attributes_defectsRaisingJobsRaisedJobs\" : \"attributes_defectsWithInspectionsDefectInspection\";"
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksGeometryMapping_839e1d01fd7764f7dae775e1",
"attributeType": "GeoJson",
"value": {
"outputAction": "89db31f61c5f4e8a45d156bc",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_itemsGeometry"
}
}
}
],
"variables": [
{
"name": "taskImplements",
"value": {
"inputParent": 0,
"itemValue": {
"property": "Implements"
}
},
"attributeType": "String"
}
],
"actions": [
{
"actionId": "8a9ec87160b566aa294400b2",
"designCode": "designs_workflowEditItemAction",
"description": "",
"parameters": [
{
"attributeCode": "attributes_tasksDescription",
"attributeType": "String",
"value": {
"outputAction": "89db31f61c5f4e8a45d156bc",
"outputMode": "Input",
"itemValue": {
"attributeCode": "attributes_defectsDescription"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowEditItemActionsCollection",
"value": "Live"
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
},
{
"actionId": "83fbc5d2c40d37536ef39f94",
"designCode": "designs_workflowEditItemAction",
"description": "Set the defect status",
"parameters": [
{
"attributeCode": "attributes_defectsStatus",
"value": {
"script": "return Variables.clonedTaskImplements.AllValues[0].AllValues.Values.Select(x => x.SingleValue).Contains(\"designInterfaces_jobs\") ? Set<AId>(AlloyId(\"5c8bdfc18ae862230019dc21\")) : Set<AId>(AlloyId(\"5c8bdfb58ae862230019dc1f\"));",
"returnOptions": {
"code": "designs_defectStatuses",
"graph": "Lookup",
"max": 1
}
},
"attributeType": "Link"
}
],
"variables": [
{
"name": "clonedTaskImplements",
"value": {
"outputAction": "8a9ec87160b566aa294400b2",
"itemValue": {
"property": "Implements"
}
}
}
],
"actions": []
}
]
}
]
}