---
title: "Action get_ticket_info"
description: "Loads ticket data by ID and stores it in the ticket constant."
---

# Action `get_ticket_info`

> **System ID:** `action_get_ticket_info`

## Description

Gets ticket information by ID and stores it in the `ticket` constant for later use in the scenario (placeholders such as `{{ticket.id}}`). If `ticket_id` is not set — it is taken from the tickets module state.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **success** | Ticket data retrieved and stored in `ticket` |
| **error** | No `ticket_id` or ticket not found |

## Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `ticket_id` | string / number | no | `null` | Ticket ID (placeholders). Otherwise — from the tickets module state |

## Configuration example

```json
{
  "ticket_id": "{{selected_ticket_id}}"
}
```

Or an empty object `{}` — then the current `ticket_id` from state is used.

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
