= settingsSectionStart('numbering', 'Numbering', 'Each ticket gets the next number, after its prefix. A reply by email finds its ticket by it.') ?>
= settingsNumberingFields('ticket', $config_ticket_prefix, $config_ticket_next_number) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('email', 'Email to ticket', 'An email to your support mailbox becomes a ticket, and a reply to one goes on it - read from the mailbox in
Mail > Receiving each time the Ticket Email Parser job in
Maintenance > Cron runs.') ?>
No mailbox is set up in Mail > Receiving, so there is nothing to read.
= settingsSwitch('config_ticket_email_parse', $config_ticket_email_parse) ?>
= settingsSwitch('config_ticket_email_parse_unknown_senders', $config_ticket_email_parse_unknown_senders, ['help' => 'From someone who isn\'t a contact, at a domain no client has - otherwise those are left in the mailbox, flagged and unread.']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('text', 'Text to ticket', 'A text to your number from one of your contacts becomes a ticket, and a text on a ticket goes on it - texts from anyone else, verification codes and spam wait in Texts instead. Texting is set up in
Text Messaging .') ?>
Texting isn't set up yet, so no texts come in.
= settingsSwitch('config_ticket_sms_parse', intval($sms_settings['config_ticket_sms_parse']), ['help' => 'Off, every text waits in Texts for an agent - STOP, START and HELP are still answered.']) ?>
= settingsSwitch('config_ticket_sms_unknown_senders', intval($sms_settings['config_ticket_sms_unknown_senders']), ['help' => 'From a number that isn\'t a contact\'s, as a ticket for no client - otherwise those wait in Texts, where an agent opens a ticket from one. Codes and spam wait there either way.']) ?>
= settingsSwitch('config_ticket_sms_acknowledge', intval($sms_settings['config_ticket_sms_acknowledge']), ['help' => 'The first text of a new ticket is answered with its number, so they know it landed and that replying adds to it.']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('new', 'New tickets', 'Who hears about a ticket as it is raised - in the portal, by email or on a schedule - and whether AI sorts it.') ?>
= settingsInput('config_ticket_new_ticket_notification_email', $config_ticket_new_ticket_notification_email, ['icon' => 'fa-bell', 'type' => 'email', 'maxlength' => 200,
'placeholder' => 'support@company.com', 'help' => 'A shared mailbox or list works best. Empty, nobody is emailed.']) ?>
AI triage needs an AI model for Tickets, or one for everything -
AI Providers .
= settingsSelect('config_ticket_ai_triage', aiTriageMode(), aiTriageModes(), ['icon' => 'fa-robot',
'help' => 'A ticket from email, the portal or the API is given a category and a priority by AI as it comes in, with a line on what the client needs - within a minute, by the AI Triage job in
Maintenance > Cron . Fill in sets the category when the ticket has none, and the priority of an emailed one, since nobody picked it; the rest is suggested. Any ticket can be triaged from its menu too.']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('time', 'Time and billing', 'How time on a ticket starts, and whether it bills.') ?>
= settingsSwitch('config_ticket_timer_autostart', $config_ticket_timer_autostart, ['help' => 'The timer runs from opening a ticket, rather than from pressing start.']) ?>
= settingsSwitch('config_ticket_default_billable', $config_ticket_default_billable, ['help' => 'A new ticket starts billable - each can be changed. How the time is billed is in
Invoices and billing .']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('quick', 'Quick tickets', 'The
in the top bar - the client, the contact and the issue, for a call or a walk-up. It shows the contact\'s tickets still open first, so the same problem isn\'t raised twice. These are what a quick ticket starts with.', 'quick') ?>
= settingsSwitch('config_quick_ticket_on', $quick['on'] ? 1 : 0, ['help' => 'For everyone who can make tickets.']) ?>
= settingsSelect('config_quick_ticket_assign', $quick['assign'], quickTicketAssignChoices(), ['icon' => 'fa-user-check', 'search' => true,
'help' => 'The window has an "Assign it to ..." switch, to change it for one ticket.']) ?>
= settingsSelect('config_quick_ticket_status', $quick['status'], quickTicketStatusChoices(), ['icon' => 'fa-info-circle']) ?>
= settingsSelect('config_quick_ticket_priority', $quick['priority'], ['Low' => 'Low', 'Medium' => 'Medium', 'High' => 'High', 'Urgent' => 'Urgent'], ['icon' => 'fa-thermometer-half',
'help' => 'The window can change it for one ticket. Its SLA follows the priority, as any ticket\'s does.']) ?>
= settingsSelect('config_quick_ticket_category', $quick['category'], [], ['icon' => 'fa-layer-group', 'search' => true,
'options_html' => '
- Not Categorized - ' . categoryOptionsHtml('Ticket', $quick['category'] ?: null)]) ?>
= settingsSelect('config_quick_ticket_billable', $quick['billable'], QUICK_TICKET_BILLABLE, ['icon' => 'fa-dollar-sign']) ?>
= settingsSelect('config_quick_ticket_timer', $quick['timer'], QUICK_TICKET_TIMER, ['icon' => 'fa-stopwatch',
'help' => 'It runs on the ticket page, as a ticket\'s timer does, until the time goes on a reply.']) ?>
= settingsSwitch('config_quick_ticket_primary', $quick['primary'] ? 1 : 0, ['help' => 'Off, the contact starts empty, to be picked.']) ?>
= settingsSwitch('config_quick_ticket_open_tickets', $quick['open_tickets'] ? 1 : 0, ['help' => 'Not resolved or closed - with Work on this one, to go to one instead.']) ?>
= settingsSwitch('config_quick_ticket_email_client', $quick['email_client'] ? 1 : 0, ['help' => 'The "ticket created" email, as New Ticket sends it.'
. (intval($config_ticket_client_general_notifications) === 1 ? '' : ' Emails to clients are off in
Notifications , so none goes either way.')]) ?>
= settingsSectionEnd() ?>
Ticket Statuses)
$assigned_sent_by = array_column(array_filter(ticketStatusesAll(), function ($status) {
return intval($status['ticket_status_first_response']) === 2 && intval($status['ticket_status_active']) === 1;
}), 'ticket_status_name'); ?>
= settingsSectionStart('messages', 'Messages to clients', 'Sent for you as a ticket moves along. Words in square brackets are filled in from the ticket -
[Ticket],
[Subject],
[Contact],
[First Name],
[Client],
[Agent],
[Ticket Link],
[Date] and the others canned responses take. The email greets each person by name, so the message needn\'t.', 'messages') ?>
= settingsTextarea('config_ticket_assigned_message', ticketAssignedMessage(), ['rows' => 5, 'maxlength' => 5000,
'help' => 'Emailed to the contact and watchers when an agent moves a ticket nobody has answered yet into a status that counts as the first response by emailing the client - set in
Ticket Statuses . It is kept on the ticket as a public note.
[Agent] is who it is assigned to. '
. ($assigned_sent_by ? 'Sent on moving into
' . escapeHtml(implode(', ', $assigned_sent_by)) . ' .' : 'No status sends it yet.')]) ?>
= settingsTextarea('config_ticket_no_response_message', ticketNoResponseMessage(), ['rows' => 7, 'maxlength' => 5000,
'help' => 'For a client who never answered: the arrow beside a ticket\'s Resolve button has
Resolve - no response , which sends this - changed for the ticket first, if need be - in place of the usual "resolved" words, resolves it, and closes it later without asking how we did.
[Agent] is whoever sends it.']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('closing', 'Closing', 'A resolved ticket waits for the client to say it isn\'t, then closes by itself, each night.') ?>
= settingsInput('config_ticket_autoclose_hours', intval($config_ticket_autoclose_hours), ['icon' => 'fa-clock', 'type' => 'number', 'min' => 24, 'max' => 8760, 'required' => true,
'suffix' => 'hours', 'help' => 'From when it was last changed. 72 is three days.']) ?>
= settingsSectionEnd() ?>
= settingsSectionStart('page', 'The tickets page', 'How it opens for everyone, and what the board lets them do.') ?>
= settingsSelect('config_ticket_default_view', intval($config_ticket_default_view), [0 => 'A list', 1 => 'A compact list', 2 => 'A board (kanban)'], ['icon' => 'fa-eye']) ?>
= settingsSwitch('config_ticket_ordering', $config_ticket_ordering, ['help' => 'Tickets are dragged into order in a column. Off, a column is in order of priority, then number.']) ?>
= settingsSwitch('config_ticket_moving_columns', $config_ticket_moving_columns, ['help' => 'The board\'s columns are dragged into another order.']) ?>
= settingsSectionEnd() ?>
= settingsSaveBar('edit_ticket_settings') ?>