get_ticket_history
Fetch a ticket's transaction history to see comments, replies, status changes, and field value updates.
Instructions
Get the transaction history for a ticket. Returns a list of transactions (comments, replies, status changes, etc.). Most entries name the field changed in Field and carry its old and new values. Two kinds do not. An owner or watcher change (Type SetWatcher, AddWatcher or DelWatcher) puts a numeric user ID in OldValue and NewValue, and no tool here turns one into a name — describe the change without inventing one. A custom field change (Type CustomField) puts the field's numeric ID in Field rather than its name, which get_queue_fields maps back; its OldValue and NewValue hold the values as usual, while OldReference and NewReference are row IDs that nothing here resolves.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Ticket ID | |
| page | No | Page number (default 1) | |
| fields | No | Comma-separated fields to include. Replaces the default (Type,Field,OldValue,NewValue,Created,Creator) rather than adding to it. | |
| per_page | No | Results per page (max 100, default 20) |