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

Wysoka złożoność🔗 Webhook25 węzłów🏷️ Project Management👁 104 wyświetleńautor: Gregor

Przegląd

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

Użyte węzły

HTTP RequestCode

Podgląd 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

Jak to działa

  1. 1

    Wyzwalacz

    Workflow uruchamia się wyzwalaczem webhook.

  2. 2

    Przetwarzanie

    Dane przepływają przez 25 węzłów, connecting aggregate, code, filter.

  3. 3

    Wyjście

    Workflow kończy automatyzację i dostarcza wynik do skonfigurowanego miejsca docelowego.

Szczegóły węzłów (25)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

Jak zaimportować ten workflow

  1. 1Kliknij przycisk Pobierz JSON po prawej stronie, aby zapisać plik workflow.
  2. 2Otwórz swoją instancję n8n. Przejdź do Workflow → Nowy → Importuj z pliku.
  3. 3Wybierz pobrany plik check-dependencies-before-completing-awork-tasks-workaround i kliknij Importuj.
  4. 4Skonfiguruj dane uwierzytelniające dla każdego węzła usługi (klucze API, OAuth itp.).
  5. 5Kliknij Testuj workflow, aby sprawdzić, czy wszystko działa, a następnie aktywuj go.

Lub wklej bezpośrednio w n8n → Importuj z JSON:

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

Integracje

aggregatecodefilterhttprequestifsetsplitoutwebhook

Pobierz ten workflow

Pobierz i zaimportuj jednym kliknięciem

Pobierz JSONZobacz na n8n.io
Węzły25
Złożonośćhigh
Wyzwalaczwebhook
Wyświetlenia104

Autor

Gregor

Gregor

@gregorg

Tagi

aggregatecodefilterhttprequestifsetsplitoutwebhook

Nowy w n8n?

n8n to darmowe narzędzie open-source do automatyzacji workflow. Hostuj samodzielnie lub użyj wersji chmurowej.

Pobierz n8n za darmo →