list_work_items
Search and list work items in a Polarion project. Use Lucene queries or native SQL to filter by type, title, or custom fields.
Instructions
List / search work items in a project.
Lucene query (type:requirement, title:SRS*; leading wildcards 400) or omit for all. module and body text are NOT Lucene-indexed — scope by document via SQL:(...) or read_document_parts, never a Lucene module term.
SQL:(...) runs native SQL: call get_sql_query_recipes first and adapt a recipe (document scope, custom-field, traceability), do not hand-write. Escape ' as ''; keep LIKE top-level via INNER JOIN (rejected inside EXISTS; C_DESCRIPTION LIKE never matches).
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 |