create_work_item_comments
Add comments to Polarion work items in a single request. Supports threaded replies, HTML formatting, and optional titles.
Instructions
Create one or more comments on a work item in one request.
Reply: set parent_comment_id to a short id from list_work_item_comments (None = top-level). Optional title sets the comment heading. 'text/html' text is sent unsanitized. Always authored by the token's user. NOT idempotent — a retry duplicates. workitemimg:{id} image refs in text/html comments must name an existing attachment — resolve via list_work_item_attachments first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| comments | Yes | Comments to create in one request. | |
| project_id | Yes | Polarion project ID. | |
| work_item_id | Yes | Work item ID, e.g. 'MCPT-001'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| comment_ids | Yes | ||
| payload_preview | Yes |