> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Priority and escalation

> Priority and escalation of requests in CRMScript

<Note>
  This feature requires a **Service Premium** license or the **Growth** plan.
</Note>

## Void checkEscalating(Integer action)

Runs a check according to the ticket's priority and the given action. Based on the result, 1 of the following happens:

* Escalation stops
* Escalation restarts
* Escalation continues

You can specify the following actions:

| Value | Action                |
| :---: | :-------------------- |
|   0   | ActionRead            |
|   1   | ActionChangedOwner    |
|   2   | ActionNewInfo         |
|   3   | ActionClosed          |
|   4   | ActionChangedPriority |
|   5   | ActionNew             |

```crmscript theme={null}
Ticket t;
t.load(8);
t.checkEscalating(4);
```


## Related topics

- [SuperOffice.WebApi.Data.TicketPriorityEscalationLevelEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketPriorityEscalationLevelEntity.md)
- [Post Ticket Priority Entity](/en/api/reference/restful/rest/list_ticketpriority/post-ticket-priority-entity.md)
- [Put Ticket Priority Entity](/en/api/reference/restful/rest/list_ticketpriority/put-ticket-priority-entity.md)
- [Get Ticket Priority Entity](/en/api/reference/restful/rest/list_ticketpriority/get-ticket-priority-entity.md)
- [Save Ticket Priority Entity](/en/api/reference/restful/agent/list_agent/save-ticket-priority-entity.md)
