Check dependencies before completing Awork tasks (Workaround) — Flujo de trabajo n8n

Alta complejidad🔗 Webhook25 nodos🏷️ Project Management👁 104 vistaspor Gregor

Descripción general

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

Nodos utilizados

HTTP RequestCode

Vista previa del flujo de trabajo

Awork workaround for done tasks with subtasks
Currently, Awork does not offer direct support for the
* If a task has subtasks,
Workflow config
* Configure basic settings
Extract status changes from webhook call payl
Check if task status is currently "done"
* If yes, proceed
* If no, exit workflow
Check if dependencies are enabled
* If yes, process dependencies
* If no, check if tree structure is enabled
Load task dependencies and filter open tasks
Check if tasks marked as dependencies are ope
* If yes, roll back status.
* If not, proceed to tree structure check
Roll back task status
Check if comment should be added to task
* Exit workflow if no comment should be added
Add comment to task regarding roll back of ta
* Add comment and exit workflow
Check if tree structure check is enabled
* Exit workflow if not enabled
Check if task has subtasks
* Exit workflow if no subtasks found
Load subtasks not marked as done
Check if open subtasks exist
* Exit workflow if no open subtasks found
Roll back task status
Check if comment should be added to task
* Exit workflow if no comment should be added
Add comment to task regarding roll back of ta
* Add comment and exit workflow
Green sticky notes: Logical group of nodes
Red sticky notes: Routing and possible workfl
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

Cómo funciona

  1. 1

    Disparador

    El flujo de trabajo comienza con un disparador webhook.

  2. 2

    Procesamiento

    Los datos fluyen a través de 25 nodos, connecting aggregate, code, filter.

  3. 3

    Salida

    El flujo de trabajo completa su automatización y entrega el resultado al destino configurado.

Detalles de nodos (25)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

Cómo importar este flujo de trabajo

  1. 1Haz clic en el botón Descargar JSON a la derecha para guardar el archivo del flujo de trabajo.
  2. 2Abre tu instancia de n8n. Ve a Flujos de trabajo → Nuevo → Importar desde archivo.
  3. 3Selecciona el archivo check-dependencies-before-completing-awork-tasks-workaround descargado y haz clic en Importar.
  4. 4Configura las credenciales para cada nodo de servicio (claves API, OAuth, etc.).
  5. 5Haz clic en Probar flujo de trabajo para verificar que todo funcione, luego actívalo.

O pega directamente en n8n → Importar desde JSON:

{ "name": "Check dependencies before completing Awork tasks (Workaround)", "nodes": [...], ...}

Integraciones

aggregatecodefilterhttprequestifsetsplitoutwebhook

Obtener este flujo de trabajo

Descarga e importa con un solo clic

Descargar JSONVer en n8n.io
Nodos25
Complejidadhigh
Disparadorwebhook
Vistas104

Creado por

Gregor

Gregor

@gregorg

Etiquetas

aggregatecodefilterhttprequestifsetsplitoutwebhook

¿Nuevo en n8n?

n8n es una herramienta de automatización de flujos de trabajo gratuita y de código abierto. Alójala tú mismo o usa la versión en la nube.

Obtener n8n gratis →