飞书项目 icon

飞书项目

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

Actions75

附件 → 添加附件

AI-generated

Overview

This node operation allows users to upload attachments to a specified work item within a project space in Feishu Project. It is useful for automating the process of adding files to work items, such as attaching documents, images, or other relevant files to tasks or issues in project management workflows.

Use Case Examples

  1. Uploading a PDF report to a task in a project space.
  2. Adding screenshots or design files to a bug report work item.
  3. Automating the attachment of generated logs or export files to a work item for review.

Properties

Name Meaning
空间 The project space where the attachment will be uploaded. Users can select from a list or manually input the project_key.
工作项类型 Name or ID The type of work item within the selected project space. This is required to specify the context for the attachment.
工作项实例ID The unique identifier of the specific work item instance to which the attachment will be added.
Input Binary Field The name of the binary data field containing the file to be uploaded. The attachment size supports up to 100MB.
附件字段 Name or ID The target field in the work item where the attachment will be uploaded. This depends on the selected project space and work item type.
Options Additional optional settings such as custom file name, array index for composite fields, batching options for concurrent uploads, and request timeout settings.

Output

JSON

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

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Common issues include invalid project_key or work_item_id, unsupported file size exceeding 100MB, and incorrect binary field name.
  • Errors related to API authentication failure or permission issues may occur if credentials are not properly configured.
  • Timeout errors can happen if the server response is delayed beyond the specified timeout; adjusting the timeout option may help.

Links

Discussion