# TicketHistory API (Tickets)

> Reference for the Leantime Tickets TicketHistory JSON-RPC service: every leantime.rpc.Tickets.TicketHistory method with its parameters and return values.

Source: https://docs.leantime.io/api/classes/leantime/domain/tickets/services/tickethistory/

Change history of a ticket (the field changes recorded in zp_tickethistory), prepared for display.

`leantime.rpc.Tickets.TicketHistory.`


## Available Methods
### `leantime.rpc.Tickets.TicketHistory.getTicketHistory`

The change history of a ticket, newest first.

```json
{
    "method": "leantime.rpc.Tickets.TicketHistory.getTicketHistory",
    "jsonrpc": "2.0",
    "id": 1,
    "params": {
        "ticketId": int,
    }
}
```








**Parameters:**

| Parameter | Type | Description |
|-----------|------|-------------|
| `ticketId` | **int** | The ticket id |


**Returns:**
The entries, or false when not found/not allowed
```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": array<int,\Leantime\Domain\Tickets\Models\TicketHistoryEntry>|false
}
```



---