飞书项目 icon

飞书项目

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

Actions75

子任务 → 创建子任务

AI-generated

Overview

This node operation creates a subtask within a specified project space in Feishu Project. It is useful for project management scenarios where tasks need to be broken down into smaller, manageable subtasks. For example, a project manager can use this node to automate the creation of subtasks under a main work item, assigning roles, schedules, and notes programmatically.

Use Case Examples

  1. Creating a subtask under a specific work item in a project space to delegate parts of a larger task.
  2. Automating subtask creation with predefined assignees and schedules based on project workflows.

Properties

Name Meaning
空间 The project space where the subtask will be created, identified by project_key. Can be selected from a list or entered manually.
工作项类型 Name or ID The type of work item under which the subtask is created. Must be selected after choosing the project space. Options are loaded dynamically based on the selected space.
工作项ID The ID of the work item instance under which the subtask will be created. This ID is obtained from the work item details.
请求体参数 The full JSON request body containing subtask details such as node ID, name, alias key, assignees, roles, schedule, notes, and field value pairs. This defines the subtask's attributes.
Options Additional options including batching settings for concurrent requests and timeout settings for server response wait time.

Output

JSON

  • error - Error message if the subtask creation fails.
  • details - Detailed error information if available.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the project_key and work_item_type_key are correctly selected and valid, as invalid keys will cause errors.
  • The work_item_id must be accurate and correspond to an existing work item instance.
  • JSON request body must be correctly formatted according to Feishu Project API specifications; invalid JSON or missing required fields will cause failures.
  • Batching options must be configured properly; setting batch size to 0 defaults to 1, and batch interval controls request pacing.
  • Timeout should be set considering network conditions; too low a timeout may abort requests prematurely.

Links

Discussion