> ## 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

> Used to handle priorities.

Used to handle priorities.

## Constructors

### Priority()

```crmscript theme={null}
Priority
```

Initializes a new instance of the Priority class.

## Methods

## checkEscalating(Integer,Integer)

Checks if the ticket should change its alert level based on the priority and action. If it is to change, the alert level and alert timeout for the ticket will be updated.

```crmscript theme={null}
Void checkEscalating(Integer ticketId, Integer action)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

<Note>
  Useful if you want to change the state of a ticket that is monitored by the its priority. It will take care of all the escalation routines so you do not have to do this manually.

  Possible action values: Ticket changed owner = 0 Ticket change owner = 1 Ticket received new information = 2 Ticket closed = 3 Ticket changed priority = 4 New ticket = 5
</Note>


## Related topics

- [priority](/en/api/mdo-providers/reference/priority.md)
- [Request priorities](/en/request/admin/priority/index.md)
- [Priority and escalation](/en/automation/crmscript/howto/request/escalate.md)
- [NSPriority](/en/automation/crmscript/reference/CRMScript.NetServer.NSPriority.md)
- [Priority table](/en/database/tables/priority.md)
- [Delete Priority](/en/api/reference/restful/rest/list_priority/delete-priority.md)
