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

Hoog complexiteit🔗 Webhook25 knooppunten🏷️ Project Management👁 104 weergavendoor Gregor

Overzicht

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

Gebruikte knooppunten

HTTP RequestCode

Workflow-voorvertoning

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

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een webhook-trigger.

  2. 2

    Verwerking

    Gegevens stromen door 25 knooppunten, connecting aggregate, code, filter.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

Knooppuntdetails (25)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows → Nieuw → Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand check-dependencies-before-completing-awork-tasks-workaround en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n → Importeren uit JSON:

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

Integraties

aggregatecodefilterhttprequestifsetsplitoutwebhook

Haal deze workflow op

Download en importeer met één klik

JSON downloadenBekijken op n8n.io
Knooppunten25
Complexiteithigh
Triggerwebhook
Weergaven104

Gemaakt door

Gregor

Gregor

@gregorg

Tags

aggregatecodefilterhttprequestifsetsplitoutwebhook

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen →