Skip to content

任务管理工具

本文档详细介绍任务管理工具的使用方法。

⚠️ 重要提示

  • 时间格式:ISO 8601 / RFC 3339,如 2026-02-28T17:00:00+08:00
  • current_user_id 强烈建议:从 SenderId 获取,工具会自动添加为 follower

工具列表

工具功能
feishu_task_task管理任务
feishu_task_tasklist管理任务清单
feishu_task_subtask管理子任务
feishu_task_comment管理任务评论

使用示例

创建任务

json
{
  "action": "create",
  "summary": "完成项目报告",
  "description": "需要包含 Q1 数据分析",
  "due": {
    "timestamp": "2026-02-28T17:00:00+08:00"
  },
  "current_user_id": "ou_xxx",
  "members": [
    {"id": "ou_yyy", "role": "assignee"},
    {"id": "ou_zzz", "role": "follower"}
  ]
}

查询任务列表

json
{
  "action": "list",
  "completed": false
}

完成任务

json
{
  "action": "patch",
  "task_guid": "xxx",
  "completed_at": "2026-02-28T15:30:00+08:00"
}

反完成(恢复未完成)

json
{
  "action": "patch",
  "task_guid": "xxx",
  "completed_at": "0"
}

创建清单

json
{
  "action": "create",
  "name": "项目任务",
  "members": [
    {"id": "ou_xxx", "role": "editor"}
  ]
}

成员角色

角色说明
assignee负责人(可编辑任务)
follower关注人(接收通知)

注意事项

  1. 创建任务时传 current_user_id,工具会自动添加为 follower,确保创建者可以编辑
  2. 创建清单时不要包含创建人,否则会变成 owner
  3. 完成任务使用完成时间作为 completed_at

Released under the MIT License.