list_document_comments
Retrieve comments from a Polarion document. Supports pagination and reconstructs threads via parent and child comment IDs.
Instructions
List comments attached to a Polarion document.
Comments come back as a flat page; reconstruct threads on the client
side via parent_comment_id (set on replies) and child_comment_ids
(direct replies). Top-level comments have parent_comment_id of
None.
text is returned verbatim, with text_format indicating
'text/html' or 'text/plain'. HTML is NOT sanitized so the body
round-trips losslessly; treat it as untrusted input if rendering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Polarion project ID. | |
| space_id | Yes | Space ID that contains the document (use '_default' for the default space). | |
| document_name | Yes | Document name within the space. | |
| page_size | No | Number of comments per page (1-100, default 100). | |
| page_number | No | Page number to retrieve (1-based, default 1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| total_count | Yes | ||
| page | Yes | ||
| page_size | Yes | ||
| has_more | No | True if more pages follow. |