create_work_items
Create 1 to 50 work items in one project in a single request. Validates standard enums and custom fields; a single invalid item rejects the entire batch.
Instructions
Create 1-50 work items in one project in a single bulk request.
Standard enums (type/status/severity/priority) are validated — unknown ids raise ValueError with valid options. custom_fields keys are validated against the type's schema. Atomic: one bad item rejects the whole batch; an id-count mismatch raises — re-query list_work_items before retrying.
Items are created free-floating; place into a document with move_work_item_to_document (this tool cannot). description is Markdown → sanitized HTML; later edits are raw-HTML round-trip via get_work_item(include_description_html=True) ↔ update_work_items. Markdown tables get native Polarion styling; a paragraph starting 'Table:' directly after a table becomes a numbered caption widget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Work items to create in one request (1-50). | |
| dry_run | No | Preview payload without writing; guards still query Polarion. | |
| project_id | Yes | Polarion project ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| created | Yes | ||
| dry_run | Yes | ||
| work_item_ids | No | ||
| payload_preview | No |