Check dependencies before completing Awork tasks (workaround)
Ready for 3.0What this workflow does
This workflow has 25 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.awork.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow config (Edit Fields (Set)): sets 6 fields: finishedStateLabels, useDependencies, useTreeStructure…
- Fetch task changes (Edit Fields (Set)): sets or maps fields
- Split Out: splits a list into separate items
- Filter: keeps only the items that match a condition
- Check if task done (If): checks a condition and branches into true / false
- Check if dependencies enabled (If): checks a condition and branches into true / false
- Load dependencies for task (HTTP Request): calls an HTTP API
- Check if tree structure enabled (If): checks a condition and branches into true / false
- Aggregate: combines items into one
- Check subtasks (If): checks a condition and branches into true / false
…plus 14 more steps. See the full node list below.
HTTP calls to: api.awork.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- HTTP Request
n8n-nodes-base.httpRequest - Aggregate
n8n-nodes-base.aggregate - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code
From the author
Awork currently does not support a check for open subtasks or open dependencies when setting a task status to done. This workflow offers you a simple workaround to add this functionality to Awork and notifies users when triggered. Multiple configuration…