飞书项目 icon

飞书项目

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

Actions75

工作项实例读写 → 更新工时登记记录

AI-generated

Overview

This node operation updates work hour registration records for a specific work item instance within a project space in Feishu Project. It is useful for managing and modifying time tracking data associated with work items, allowing users to keep accurate records of work hours spent. For example, a project manager can update the logged hours for a task to reflect actual time spent by team members.

Use Case Examples

  1. Updating the work hour records of a task in a project space to correct or add new time entries.
  2. Automating the update of work hour logs based on external time tracking data integrated into Feishu Project.

Properties

Name Meaning
空间 The project space where the work item instance resides. Can be selected from a list or entered manually as a project key.
工作项类型 Name or ID The type of work item within the selected project space. This is required to specify the category of the work item being updated.
工作项ID The unique identifier of the work item instance to update. This ID is obtained from the work item instance details.
请求体参数 The complete request body in JSON format containing the work hour records to update, including fields like id, work_time, and work_description.
Options Additional options such as batching (to control concurrency and batch size) and timeout settings for the request.

Output

JSON

  • working_hour_records
    • ``
      * id - The ID of the updated work hour record.
      * work_time - The updated work time value.
      * work_description - The description or notes associated with the work hour record.

Dependencies

  • Requires an API key credential for Feishu Project API authentication.

Troubleshooting

  • Common issues include invalid or missing project_key, work_item_type_key, or work_item_id parameters, which will cause the operation to fail.
  • Errors may occur if the JSON request body is malformed or missing required fields like working_hour_records.
  • Timeout errors can happen if the server takes too long to respond; adjusting the timeout option may help.
  • If batching is enabled, improper batch size or interval settings might lead to rate limiting or request failures.

Links

Discussion