Skip to content
Browse files
Ticket Merge: Close Children
When tickets are merged, we should automatically close children Tickets. This commit gives the Agent an option of which closed status they want children tickets to be set to.

This references issue #5049
  • Loading branch information
aydreeihn committed Oct 29, 2019
1 parent 3a41a8a commit 6fef208f023cd5efd498ce91a34e413f181609c0
Showing with 26 additions and 0 deletions.
  1. +1 −0 include/class.ticket.php
  2. +5 −0 include/i18n/en_US/help/tips/tickets.queue.yaml
  3. +20 −0 include/staff/templates/merge-tickets.tmpl.php
@@ -2533,6 +2533,7 @@ function merge($tickets) {


if ($options['delete-child'] || $options['move-tasks']) {
if ($tasks = Task::objects()
@@ -85,6 +85,11 @@ merge_types:
<b>Separate Threads:</b>
Threads from Tickets will be displayed one Ticket at a time.
title: Child Ticket Status
content: >
All Child Tickets will be set to a closed status since thread entries will all be moved to the Parent Ticket.
title: Reply Types
content: >
@@ -97,6 +97,26 @@
<div id="child-status">
<label class="inline checkbox">
<?php echo __('Child Status');?>
<select id="statusId" name="statusId">
$states = array('closed');
foreach (TicketStatusList::getStatuses(
array('states' => $states)) as $s) {
if (!$s->isEnabled()) continue;
echo sprintf('<option value="%d">%s</option>',
<i class="help-tip icon-question-sign" href="#child_status"></i>
<?php } ?>


0 comments on commit 6fef208

Please sign in to comment.