Create ticket
create_ticketCreate a defect or maintenance ticket on an item. The organization's default assignee rules apply, and the assignee is emailed straight away. setItemStatus also sets the item's condition in the same call (like the web report form, where a defect report usually marks the item "defect"); members may use it, unlike set_item_status. With clientRequestId a repeated call returns the existing ticket instead of a duplicate; without it every call creates a new ticket. Quantity-tracked items take no tickets (refused with quantityItem).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"itemId": "<itemId>",
"type": "<type>",
"title": "<title>"
},
"name": "create_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| title | Yes | Short ticket title | |
| itemId | Yes | Item id | |
| priority | No | ||
| description | No | ||
| setItemStatus | No | Also set the item's condition in the same operation; absent = the item status stays unchanged. set_item_status covers the other status changes. | |
| clientRequestId | No | A unique id for this request (e.g. a UUID). A repeated call with the SAME id returns the existing ticket instead of creating a duplicate; a new id creates a new ticket. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Ticket title | |
| status | No | Ticket status | |
| ticketId | No | The new ticket's id | |
| assigneeName | No | Who it was routed to |