飞书项目 icon

飞书项目

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

Actions75

子任务 → 删除子任务

AI-generated

Overview

This node operation deletes a subtask within a specified project space in Feishu Project. It is useful for automating task management workflows where subtasks need to be programmatically removed based on certain conditions or triggers. For example, it can be used to clean up subtasks when a parent task is completed or canceled.

Use Case Examples

  1. Automatically delete subtasks when a parent task is marked as done.
  2. Remove subtasks that are no longer relevant after a project update.

Properties

Name Meaning
空间 The project space where the subtask exists. It can be selected from a list or entered manually as a project key.
工作项类型 Name or ID The type of work item within the selected space. This is required to specify the context of the subtask to delete. The list is dynamically loaded based on the selected space.
工作项ID The unique identifier of the work item instance that contains the subtask to be deleted.
任务ID The unique identifier of the subtask to be deleted.
Options Additional options for the delete operation, including batching parameters for concurrent requests and timeout settings.

Output

JSON

  • error - Error message if the delete operation fails.
  • details - Additional error details if available.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the project_key, work_item_type_key, work_item_id, and task_id are correctly specified and valid.
  • If batching is enabled, verify that batch size and interval are set appropriately to avoid rate limiting or server overload.
  • Common errors include invalid IDs or insufficient permissions, which will be returned in the error output.
  • Timeout errors can occur if the server does not respond within the specified timeout period; increase timeout or check network connectivity.

Links

Discussion