Check dependencies before completing Awork tasks (Workaround) — Workflow n8n

Élevé complexité🔗 Webhook25 nœuds🏷️ Project Management👁 104 vuespar Gregor

Aperçu

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

Nœuds utilisés

HTTP RequestCode

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur webhook.

  2. 2

    Traitement

    Les données transitent par 25 nœuds, connecting aggregate, code, filter.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (25)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier check-dependencies-before-completing-awork-tasks-workaround téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

aggregatecodefilterhttprequestifsetsplitoutwebhook

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds25
Complexitéhigh
Déclencheurwebhook
Vues104

Créé par

Gregor

Gregor

@gregorg

Tags

aggregatecodefilterhttprequestifsetsplitoutwebhook

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →