Automate Time Tracking Enforcement & Cleanup for Awork Tasks — n8n 工作流

复杂度🔗 Webhook31 个节点🏷️ Project Management👁 110 次查看作者:Gregor

概览

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

使用的节点

HTTP RequestCode

工作流预览

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

工作原理

  1. 1

    触发器

    工作流由 webhook 触发器启动。

  2. 2

    处理

    数据流经 31 个节点, connecting code, filter, httprequest。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (31)

HT

HTTP Request

httpRequest

#1
CO

Code

code

#2

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 automate-time-tracking-enforcement-cleanup-for-awork-tasks 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

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

集成

codefilterhttprequestifsetsplitoutswitchwebhook

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点31
复杂度high
触发器webhook
查看次数110

创建者

Gregor

Gregor

@gregorg

标签

codefilterhttprequestifsetsplitoutswitchwebhook

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →