Automate time tracking enforcement & cleanup for Awork tasks
Ready for 3.0What this workflow does
This workflow has 31 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls api.awork.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Workflow config (Edit Fields (Set)): sets 17 fields: finishedStateLabels, forceTimeTracking, limitForceTimeTrackingToTags…
- Fetch task changes (Edit Fields (Set)): sets 1 field: eventType
- Split Out: splits a list into separate items
- Filter: keeps only the items that match a condition
- Switch: routes items into 2 branches
- Check if task done (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Check if force time tracking enabled (If): checks a condition and branches into true / false
- Load system type of work (HTTP Request): calls an HTTP API
- Check tag restriction (If): checks a condition and branches into true / false
…plus 20 more steps. See the full node list below.
HTTP calls to: api.awork.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Switch
n8n-nodes-base.switch
From the author
This workflow offers several additional features for time tracking with Awork: Check whether time has been tracked when closing a task. If not, the task is reopened and the user is notified. This can be restricted to specific tasks using tags. Enforce a…