飞书项目 icon

飞书项目

飞书项目管理 API 集成,支持工作项、空间、用户、工作流等完整功能

Actions75

子任务 → 更新子任务

AI-generated

Overview

This node operation updates a subtask within a project management space in Feishu Project. It is useful for automating the modification of subtask details such as name, assignees, schedule, notes, deliverables, and other custom fields. For example, it can be used to update the status or assignee of a subtask based on workflow triggers or external inputs.

Use Case Examples

  1. Updating the assignee and schedule of a subtask when a related task is completed.
  2. Automatically adding notes or deliverables to a subtask based on external data.

Properties

Name Meaning
空间 选择空间。可以从列表选择或手动输入 project_key。
工作项类型 Name or ID 空间下工作项类型,需要先选择空间。选择列表中的类型或使用表达式指定ID。
工作项ID 工作项实例 ID,在工作项实例详情中获取。
节点ID 节点的唯一标识ID。
任务ID 任务的唯一标识ID。
请求体参数 完整的请求体参数,JSON格式,包含子任务的详细更新内容。
Options 额外选项,如批量处理设置和请求超时。

Output

JSON

  • error - 错误信息,如果请求失败则包含错误描述。
  • name - 子任务名称。
  • assignee - 子任务的指派人列表。
  • role_assignee - 角色指派人信息。
  • schedule
    • points - 子任务的计划点数。
    • estimate_start_date - 计划开始日期的时间戳。
    • estimate_end_date - 计划结束日期的时间戳。
    • owners - 计划负责人列表。
    • actual_work_time - 实际工作时间。
    • is_auto - 是否自动计划。
  • note - 子任务备注。
  • deliverable - 交付物字段数组。
  • update_fields - 更新的字段数组。

Dependencies

  • Feishu Project API with API key credential

Troubleshooting

  • 确保选择了正确的空间(project_key)和工作项类型(work_item_type_key),否则无法正确更新子任务。
  • 请求体参数必须是有效的JSON格式,且符合Feishu Project子任务更新接口的要求。
  • 批量处理时注意设置合理的批次大小和间隔,避免请求过载或超时。
  • 常见错误包括未实现的方法错误,通常是因为资源或操作名称错误,检查输入参数是否正确。

Links

Discussion