# Creating a Ticket

https://docs.wisecp.com/fr/creating-a-ticket

Open a ticket for a registered client with its related service and department so the conversation enters the queue with the necessary context and, when needed, an assigned owner.

## Reaching the Screen

Panel menu: **Support** then **Create Ticket**: `{admin}/tickets/create`

## What Is on the Screen

The form first identifies the client and service, then sets the ticket state and routing, and finally collects the message and attachments.

## Fields

- **Client**: Required. Search for the registered client the ticket belongs to.
- **Related Service**: Optional. It stays unavailable until a client is selected and then lists only that client's services.
- **Status**: The state the ticket enters with. The default is Answered because the opening message comes from staff.
- **Department**: Routes the ticket to a support department. Other leaves it without a department.
- **Priority**: Sets the urgency shown in the queue.
- **Assigned Staff**: Optionally gives ownership to a staff member and notifies that person.
- **Locked**: Prevents new client replies from being added to the ticket.
- **Subject**: Required. Becomes the title in the queue and notifications.
- **Predefined Reply**: Loads a saved reply in the client's language into the message editor. Its client and service variables are filled when the ticket is created.
- **Message**: Required. The first reply in the conversation.
- **Encrypt Message**: Stores the opening message encrypted for sensitive support conversations.
- **Attachments**: Adds one or more files, subject to the extensions, per-file size and total upload limits shown by the form.

## Tasks

### Create a ticket for a client

1. Select the client, then choose a related service when the question concerns one.
2. Set the department, priority, status and optional assignee.
3. Enter the subject and message, then add any allowed attachments.
4. Submit the form. The client is notified and the new ticket appears in the ticket queue.

### Start from a predefined reply

1. Select the client so the system knows which language and services to use.
2. Choose a **Predefined Reply**; its content is inserted into the message editor.
3. Review the filled client and service details, edit the message if needed, and create the ticket.

### Draft with the AI assistant

With the AI Assistant add-on enabled and licensed, a bar appears under the message editor. A suggestion control appears under the subject field. Both are optional and nothing is saved until the form is submitted.

1. Write the message, or use **Ask AI** and insert the answer into the editor.
2. Use **Improve Message** to have the draft rewritten, then insert the version you accept.
3. Press **Suggest with AI** under the subject to derive a subject line from the message. It stays disabled until the message differs from the signature the editor opens with, and the answer replaces whatever the subject field holds.
4. Review the generated text yourself, then create the ticket.

## Things to Watch

> **The service must belong to the client**
> 
> The server checks the relationship again when the form is submitted. Changing the request by hand cannot attach another client's service.

> **Creation returns to the queue**
> 
> After the ticket and its opening reply are saved, the screen returns to the ticket list rather than opening the new detail page.

## Privileges

**Ticket Operations** is required to open this screen and create the ticket.

## Related Screens

- [Tickets]({admin}/tickets)
- [Predefined Replies]({admin}/tickets/predefined-replies)
- [Departments]({admin}/departments)
