Automate Time Tracking Enforcement & Cleanup for Awork Tasks — n8n Workflow

High complexity🔗 Webhook31 nodes🏷️ Project Management👁 110 viewsby Gregor

Overview

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 minimum time entry for tasks to comply with "at least 15-minute intervals are billed" policies. This can also be limited to specific tasks by using tags. Clean up time entries to match billing intervals. Add a start time to time entries if it is

Nodes used

HTTP RequestCode

Workflow Preview

Enhanced time tracking features for awork
This workflow offers several additional features for ti
* Check whether time has been tra
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 force time tracking is enabled and n
* If yes, roll back task status
* If no, check if time tracking cleaning is enabled
Green sticky notes: Logical group of nodes
Red sticky notes: Routing and possible workfl
Check if force time tracking is limited to sp
* If yes, check task tags
* If no, roll back task status
Process task tags
* If a task tag is listed in "Limit forced time trackin
* If not found, return false
Check if at least one task tag is listed in c
* If yes, roll back task status
* If not, continue workflow
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 min time tracking OR time tracking c
* If yes, check time tracked
* If no, exit workflow
Check if tracked time is lesser than min time
* If yes, add new time tracking record to match min tim
* If no, continue workflow
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
Calculate missing tracked time and add system
Update tracked time to match time tracking in
Check if min time tracking is limited to spec
* If yes, check task tags
* If no, continue workflow
Process task tags
* If a task tag is listed in "Limit min time tracking t
* If not found, return false
Check if task should be time tracked by tag
* If yes, continue
* If no, exit workflow
Check if added time tracking is not system ge
* If yes, check time tracked
* If no, exit workflow
Load system type of work and related task dat
Check if forced start time is enabled
* If yes, update start time in tracked time
* If no, continue
Add start time to time tracking
* Calculates start time based on duration in the past u
* Updates time tracking entry and appends note to time
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 force time trac…
Process tags and check i…
C
Check if tags listed in …
C
Check if comments are en…
Add comment to tasks
Roll back task status fr…
C
Check tag restriction
C
Check tracked time
C
Check if comments are en…
Add comment to tasks1
Roll back task status fr…
Calculate time for added…
Calculate time for added…
Roll back task status fr…
C
Check if min time tracki…
C
Check tag restriction1
Process tags and check i…
I
If
S
Switch
Load task details for ti…
I
If1
Load system type of work
Add tracked time to matc…
I
If2
Add start time to time t…
31 nodes32 edges

How it Works

  1. 1

    Trigger

    The workflow starts with a webhook trigger.

  2. 2

    Process

    Data flows through 31 nodes, connecting code, filter, httprequest.

  3. 3

    Output

    The workflow completes its automation and delivers the result to the configured destination.

Node Details (31)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

How to Import This Workflow

  1. 1Click Download JSON button on the right to save the workflow file.
  2. 2Open your n8n instance. Go to Workflows → New → Import from file.
  3. 3Select the downloaded automate-time-tracking-enforcement-cleanup-for-awork-tasks file and click Import.
  4. 4Set up credentials for each service node (API keys, OAuth, etc.).
  5. 5Click Test Workflow to verify everything works, then activate it.

Or paste directly in n8n → Import from JSON:

{ "name": "Automate Time Tracking Enforcement & Cleanup for Awork Tasks", "nodes": [...], ...}

Integrations

codefilterhttprequestifsetsplitoutswitchwebhook

Get This Workflow

Download and import in one click

Download JSONView on n8n.io
Nodes31
Complexityhigh
Triggerwebhook
Views110

Created by

Gregor

Gregor

@gregorg

Tags

codefilterhttprequestifsetsplitoutswitchwebhook

New to n8n?

n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.

Get n8n Free →