polarion_search_in_document
Searches for work items within a specific document using a query. Scoped to a single document unlike the project-wide polarion_search_workitems.
When to use
To find specific work items within a known document. More targeted than project-wide search when you already know which document contains the items you are looking for.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | The Polarion project ID |
space_id | string | Yes | The space ID |
document_name | string | Yes | The document name |
query | string | Yes | Search query text |
work_item_type | string | No | Filter by work item type |
limit | integer | No | Max results (default 25, max 200 for this tool) |
Example response
{
"status": "success",
"query_used": "document.title:\"SystemRequirements\" AND login",
"data": [
{
"id": "Polarion-Resource-URI-or-short-id",
"outline_number": "3.1",
"title": "User Login Requirements",
"type": "requirement",
"status": "approved",
"description": "…"
}
],
"meta": {
"total_count": 12,
"links": { "self": "https://…", "next": null, "prev": null, "first": "https://…", "last": "https://…" }
}
}