飞书项目 icon

飞书项目

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

Actions76

工作项实例搜索 → 获取指定的工作项列表(单空间-复杂传参)

AI-generated

Summary

Searches work item instances in one Feishu Project space by work item type and filter conditions. Choose a space and type, set either simple conditions with AND/OR logic or provide a custom search-group JSON, then optionally select returned fields, result count, and extra details.

Inputs

  • 空间 (project_key) (required) — Select a space or enter its Project Key.
  • 工作项类型 Name or ID (work_item_type_key) (required) — Choose or enter a work item type from the selected space.
  • 筛选类型 (filter_type) (required) — Use simple conditions or custom combined search parameters.
  • 筛选条件逻辑关系 (conjunction) (required) — For simple filtering, choose AND (all conditions) or OR (any condition).
  • 筛选条件 (search_params) — For simple filtering, add one or more field, operator, and value conditions. The value may need JSON text for arrays or objects; it is hidden for IS NULL, IS NOT NULL, MEET, and NOT MEET operators.
  • 自定义筛选参数 (custom_search_group) — For custom filtering, provide SearchGroup JSON, including search_params, conjunction, and search_groups as needed.
  • 需要返回的字段 (fields) — Specify fields to include, such as ["aborted","role_owners"], or exclude with a leading minus, such as ["-aborted"]. Do not mix the two modes. Empty defaults to all fields.
  • Return All — Return all matching results when enabled; otherwise results are capped by Limit.
  • Limit — Maximum number of results when Return All is disabled; defaults to 50.
  • 选项 (options) — Optional flags to include workflow information, rich-text details, or relation-field details, plus request timeout in milliseconds (default 10000).

Output shape

A list of work item instance records, returned as n8n items on the main output.

The operation is configured to return one main output. Results are subject to the selected limit unless Return All is enabled; fields can be restricted or excluded.

Examples

Example 1: Querying tasks with multiple conditions

Space: My Project; Work Item Type: Task; Filter Type: Simple; Logic: AND; Conditions: Status equals 'In Progress' AND Assignee equals 'John Doe'; Return All: No; Limit: 50

Links

Discussion