list_work_items
Search or list work items in a Polarion project using Lucene queries or SQL. Filter by type, title, or custom criteria, and paginate results.
Instructions
List / search work items in a project.
Leading Lucene wildcards are rejected; module and body text are NOT Lucene-indexed — scope by document via SQL:(...) or read_document_parts, never a Lucene module term. For SQL:(...), call get_sql_query_recipes first and adapt a recipe — never hand-write SQL. For one known id, use get_work_item instead of scanning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional Lucene filter (e.g. 'type:requirement', 'title:SRS*') OR a 'SQL:(...)' prefix for native SQL. | |
| page_size | No | ||
| project_id | Yes | Polarion project ID. | |
| page_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| items | Yes | ||
| has_more | No | ||
| page_size | Yes | ||
| total_count | Yes |