Awork Task Completion Guard with Dependency & Subtask Checks
detail.loadingPreview
This n8n workflow automates stricter task completion rules in Awork, ensuring that parent tasks or tasks with dependencies cannot be marked as "done" until all their subtasks or prerequisite tasks are also completed. It automatically rolls back incorrect status changes and adds informative comments.
About This Workflow
This powerful n8n workflow enhances your Awork project management by introducing robust validation for task completion. Designed as a workaround for Awork's current limitations, it prevents tasks from being prematurely marked as "done" if they have open subtasks or unfulfilled dependencies. Upon detecting an invalid completion attempt, the workflow intelligently reverts the task status to its previous state and automatically posts a clarifying comment. This ensures project integrity, maintains accurate progress tracking, and streamlines team collaboration by enforcing proper workflow sequences. It integrates seamlessly with Awork's API using standard HTTP requests for maximum compatibility and flexibility.
Key Features
- Intelligent Task Status Validation: Automatically checks for open subtasks or uncompleted dependencies before allowing a parent task to be marked as "done".
- Automated Status Rollback: If completion criteria are not met, the workflow reverts the task status to its previous state.
- Transparent Communication: Adds a customizable comment to the Awork task explaining why the status rollback occurred.
- Configurable Rules: Easily define "finished" status labels and enable/disable dependency and tree structure checks via a dedicated configuration node.
- Awork API Integration: Uses direct HTTP requests for reliable and comprehensive interaction with the Awork platform.
How To Use
- Awork Webhook Setup: Configure an Awork webhook to trigger this n8n workflow whenever a task's status changes. The workflow expects
body.entity.idandbody.changesdata. - Workflow Configuration: Open the
Workflow confignode.finishedStateLabels: Update this array with the exact names of your "done" or "finished" task status labels in Awork (e.g.,["Fertig", "Total fertig"]).useDependencies: Set totrueto enable checking for uncompleted predecessor tasks.useTreeStructure: Set totrueto enable checking for uncompleted child tasks (subtasks).addComments: Set totrueto enable adding comments upon status rollback.commentTextDependencies&commentTextTreeStructure: Customize the messages used when a rollback occurs due to dependencies or subtasks.
- Awork API Credentials: Ensure your Awork API credentials (an HTTP Header Auth credential named "Awork Api") are correctly set up and linked to the
Load dependencies for tasknode. - Test the Workflow: Perform a test run by changing an Awork task's status to "done" when it has open subtasks or unfulfilled dependencies to verify the rollback and comment functionality.
- Note: This workflow currently uses HTTP nodes directly rather than the Awork community package, as noted in the Sticky Note. Ensure your HTTP nodes are configured with appropriate Awork API calls if you modify the workflow.
Apps Used
Workflow JSON
{
"id": "6844cb0a-a341-4a62-83f5-0988385b4aa2",
"name": "Awork Task Completion Guard with Dependency & Subtask Checks",
"nodes": 26,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6844cb0a-a341...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.