polarion_get_document_outline
Gets the table of contents / outline structure of a Polarion document. Returns outline entries with numbers, titles, types, and IDs.
When to use
To understand the structure of a document before reading specific sections. The outline provides headings and work item references, giving you a map of the document content before drilling into individual sections.
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 |
Example response
{
"status": "success",
"data": [
{ "outline_number": "1", "title": "Introduction", "type": "heading", "id": "HI-001" },
{ "outline_number": "1.1", "title": "Purpose", "type": "requirement", "id": "REQ-001" },
{ "outline_number": "1.2", "title": "Scope", "type": "requirement", "id": "REQ-002" },
{ "outline_number": "2", "title": "System Overview", "type": "heading", "id": "HI-002" }
]
}