飞书项目 icon

飞书项目

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

Actions75

评论 → 更新评论

AI-generated

Overview

This node operation updates a comment within a specified project space in Feishu Project. It is useful for scenarios where users need to modify existing comments on work items, either by updating plain text content or rich text content in JSON format. For example, a user can update a comment's text to correct information or add additional details.

Use Case Examples

  1. Updating a comment's plain text content on a work item in a project space.
  2. Modifying a comment with rich text formatting on a work item.

Properties

Name Meaning
空间 The project space where the comment exists, selectable from a list or by entering the project key manually.
工作项类型 Name or ID The type of work item within the selected space, required to identify the context of the comment.
工作项实例ID The ID of the specific work item instance where the comment is located.
评论ID The unique identifier of the comment to be updated.
评论内容(纯文本) The plain text content of the comment. Cannot be empty if rich text is not provided. If both plain text and rich text are provided, rich text takes precedence.
评论内容(富文本) The rich text content of the comment in JSON format. Cannot be empty if plain text is not provided. Takes precedence over plain text if both are provided.
Options Additional options such as batching for concurrent requests and timeout settings for the server response.

Output

JSON

  • comment_id - The ID of the updated comment.
  • content - The updated content of the comment, either plain text or rich text JSON.
  • updated_at - Timestamp indicating when the comment was last updated.

Dependencies

  • Requires Feishu Project API credentials for authentication.

Troubleshooting

  • Ensure the project space (project_key) is correctly selected or input; otherwise, the node will throw an error indicating the space must be selected first.
  • If both plain text and rich text content are empty, the node will throw an error because at least one must be provided.
  • Errors related to API calls may occur if the comment ID or work item ID is invalid or not found; verify these IDs are correct.
  • Timeout errors can occur if the server does not respond within the specified timeout period; adjust the timeout option accordingly.

Links

Discussion