Check dependencies before completing Awork tasks (Workaround) — n8n 工作流
概览
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 options available.
How it works Triggered via Awork Webhook call on status change of tasks If task is marked as done, subtasks and/or dependent tasks are checked for their status If unfinished tasks are found, a status rollback to previous statu
使用的节点
HTTP RequestCode
工作流预览
Load dependencies for task
A
Aggregate task dependenc…
W
Workflow config
F
Fetch task changes
S
Split out task changes
F
Filter task status change
C
Check if task done
⚡
W
Webhook call by Awork
C
Check if dependencies en…
Load all linked tasks
Build filter params
F
Filter only open tasks
A
Aggregate open task IDs
C
Check if open tasks exist
C
Check if comments are en…
Add comment to tasks
C
Check if tree structure …
C
Check subtasks
Roll back task status fr…
Load all open sub tasks
A
Aggregate task IDs
C
Check open subtasks
C
Check if comments are en…
Add comment to tasks1
Roll back task status fr…
25 nodes25 edges
工作原理
- 1
触发器
工作流由 webhook 触发器启动。
- 2
处理
数据流经 25 个节点, connecting aggregate, code, filter。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (25)
HT#1
HTTP Request
httpRequest
CO#2
Code
code
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
check-dependencies-before-completing-awork-tasks-workaround文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Check dependencies before completing Awork tasks (Workaround)", "nodes": [...], ...}
集成
aggregatecodefilterhttprequestifsetsplitoutwebhook
创建者
Gregor
@gregorg
标签
aggregatecodefilterhttprequestifsetsplitoutwebhook