Skip to main content

Generate Tasks from Defect With Defect Type Work To Do

This workflow is included in the Defect Work Items package.

Description​

Generate Tasks from Defect With Defect Type Work To Do.

Properties​

This workflow has the following properties.

PropertyValue
NameGenerate Tasks from Defect With Defect Type Work To Do
Codeworkflows_generateTasksFromDefectWorkToDo_68386eef88e2004c5965ef94
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​

A user triggers this workflow on demand, or another workflow runs it (via an MWR). It works on the items of the design below.

PropertyValue
Workflow typeManual workflow
Applies toDefect With Defect Type
Output modeManyItems  (Runs once for all items)
Parameters designParameterDesign - MWR - Generate Tasks from Defect With Defect Type Work To Do
Output actionThe Output action highlighted in the diagram below

Actions​

This workflow runs 6 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 (206 lines)
{
"trigger": {
"dodiCode": "designInterfaces_defectsWithDefectType",
"parametersDesignCode": "designs_pdMwrGenerateTasksFromDefectsWorkToDo_68358f639934228600165ad1",
"outputMode": "ManyItems",
"outputActionId": "6800d336b75e89c07c93d7e4"
},
"actions": [
{
"actionId": "6800cf33f8971f5a3ad3444a",
"designCode": "designs_workflowRelationAction",
"description": "Get task type",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_defectsDefectType.attributes_defectTypeTaskType",
"attributeType": "Link"
}
}
],
"actions": [
{
"actionId": "6800cf68d049be8f358260db",
"description": "Gets the template from task type",
"designCode": "designs_workflowRelationAction",
"parameters": [
{
"attribute": {
"attributeCode": "attributes_workflowRelationActionsAqsPath",
"value": "root.attributes_taskTypeTemplate",
"attributeType": "Link"
}
}
],
"variables": [],
"actions": []
}
]
},
{
"actionId": "6800d44418f93bf6b8e81b37",
"designCode": "designs_pdMwrCloneTasks_88c2cae133b0a129e8d59af5",
"description": "Calls the CloneTasks MWR",
"parameters": [
{
"attributeCode": "attributes_pdMwrCloneTasksTaskTypeMapping_82c4e2a3d30d521b74ddac7c",
"attributeType": "Link",
"value": {
"outputAction": "6800cf33f8971f5a3ad3444a",
"outputMode": "Input",
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksParent_8a01f9693ca42ee2fa294d20",
"attributeType": "Link",
"value": {
"inputParent": 0,
"itemValue": {
"property": "ItemId"
}
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksParentAttributeCode_85c17f89d036dc16cfa6be82",
"attributeType": "String",
"value": {
"script": "return Variables.taskTypeImplements.AllValues.Values.SelectMany(x => x.AllValues.Values).Select(x=>x.SingleValue).Contains(\"designInterfaces_jobs\") ? \"attributes_defectsRaisingJobsRaisedJobs\" : \"attributes_defectsWithInspectionsDefectInspection\";"
}
},
{
"attributeCode": "attributes_pdMwrCloneTasksGeometryMapping_839e1d01fd7764f7dae775e1",
"attributeType": "GeoJson",
"value": {
"inputParent": 0,
"itemValue": {
"attributeCode": "attributes_itemsGeometry"
}
}
}
],
"variables": [
{
"name": "taskTypeImplements",
"value": {
"outputAction": "6800cf68d049be8f358260db",
"outputMode": "Input",
"itemValue": {
"property": "Implements"
}
},
"attributeType": "String"
}
],
"actions": [
{
"actionId": "6800d336b75e89c07c93d7e4",
"designCode": "designs_workflowOutputAction",
"description": "Outputs the job",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"script": "return Variables.implements.AllValues.Values.Select(x => x.SingleValue).Contains(\"designInterfaces_jobs\") ? itemId : null;"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designInterfaces_jobs",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionSingleInstance",
"value": false,
"attributeType": "Boolean"
}
}
],
"variables": [
{
"name": "implements",
"value": {
"inputParent": 0,
"itemValue": {
"property": "Implements"
}
},
"attributeType": "String"
},
{
"name": "itemId",
"value": {
"inputParent": 0,
"itemValue": {
"property": "ItemId"
}
},
"attributeType": "Link"
}
],
"actions": [
{
"actionId": "6800d37ba7d6578250252411",
"designCode": "designs_workflowOutputAction",
"description": "Outputs Work To Do Attribute From Defects with Defect Type",
"parameters": [
{
"attributeCode": "attributes_workflowOutputActionItems",
"attributeType": "Link",
"value": {
"inputParent": 2,
"itemValue": {
"attributeCode": "attributes_defectsWorkToDo"
}
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionDodiCode",
"value": "designInterfaces_defectsWorkItems",
"attributeType": "String"
}
},
{
"attribute": {
"attributeCode": "attributes_workflowOutputActionSingleInstance",
"value": false,
"attributeType": "Boolean"
}
}
],
"actions": [
{
"actionId": "6800d3e6487bda7e183c8aea",
"designCode": "designs_pdMwrCreateJwiFromWtd_67fe5b0f2a51f7c15232548d",
"description": "Calls the CloneTasks MWR",
"parameters": [
{
"attributeCode": "attributes_WMTjobs_67fe620ff58473a543eb05ce",
"attributeType": "Link",
"value": {
"inputParent": 1,
"itemValue": {
"property": "ItemId"
}
}
}
],
"variables": [],
"actions": []
}
]
}
]
}
]
}
]
}