Projects: Keep project tickets apart under Admin Settings Projects leaves a project's tickets off the tickets list's usual views with a Projects view of their own, out of the dashboard and menu counts and the Dispatch queue, with no SLA, while Mine, Workload and the calendar keep them in the project's color with the agent's color as a dot; a ticket taken out of its project, or every one when it is switched off, gets its SLA back counted from then; off by default; database 3.8.9 adds config_project_tickets_apart, config_project_ticket_color and tickets.ticket_sla_from; 26.11.9 changelog entries

This commit is contained in:
johnnyq
2026-11-17 21:26:50 -05:00
parent 475f27fc7f
commit 55e7f6cc5d
19 changed files with 318 additions and 14 deletions

View File

@@ -1,8 +1,9 @@
<?php
/*
* Admin > Settings > Projects - how projects are numbered. Saved by
* edit_project_settings (admin/post/settings_project.php).
* Admin > Settings > Projects - how projects are numbered, and whether their
* tickets are kept apart from the service desk (functions/project_tickets.php).
* Saved by edit_project_settings (admin/post/settings_project.php).
*/
require_once "includes/inc_all_admin.php";
@@ -21,6 +22,16 @@ echo settingsPageStart('project');
<?= settingsNumberingFields('project', $config_project_prefix, $config_project_next_number) ?>
<?= settingsSectionEnd() ?>
<?php if (projectTicketsReady()) {
$project_tickets = projectTicketsSettings(); ?>
<?= settingsSectionStart('tickets', 'Project tickets', 'A project\'s tickets can be kept apart from the service desk - its dates count, not an SLA.') ?>
<?= settingsSwitch('config_project_tickets_apart', $project_tickets['apart'] ? 1 : 0, ['label' => 'Keep project tickets apart',
'help' => 'A ticket in a project is left off the Tickets list\'s usual views - it has a Projects view of its own - the dashboard\'s unassigned count and the Dispatch queue, and has no SLA. Agents still see their own under Mine, in Dispatch\'s Workload and on the calendar. A ticket taken out of its project gets its SLA back, counted from then - and so do they all if this is switched off.']) ?>
<?= settingsInput('config_project_ticket_color', $project_tickets['color'], ['type' => 'color', 'icon' => 'fa-palette', 'class' => 'form-control-color',
'label' => 'Calendar color', 'help' => 'Their bookings on the calendar and Dispatch while they are kept apart - on the calendar, with a dot in the agent\'s own color beside their name.']) ?>
<?= settingsSectionEnd() ?>
<?php } ?>
<?= settingsSaveBar('edit_project_settings') ?>
</div>
</div>