Adding resolved tickets to QuickSearch portlet

Hi All,

as the title suggests, I want to add the ‘resolved tickets’ to the Quicksearch function. So far, I only have New, Open and Stalled. I am on RT 4.2.8

I found a few ways to do this already (RT Wiki) for version 3.8.x but I also read on the forum that that way doesn’t work in the newer versions of RT

can I please get a brief description of what I need to add to get it working?

Thanks

Hi

  1. Copy /opt/rt4/share/html/Elements/QueueSummaryByLifecycle to /opt/rt4/local/share/html/Elements/QueueSummaryByLifecycle

  2. Find lines

    my @statuses;
    my %seen;
    foreach my $set ( ‘initial’, ‘active’ ) {
    foreach my $lifecycle ( map $lifecycle{$}, sort keys %lifecycle ) {
    push @statuses, grep !$seen{ lc $
    }++, $lifecycle->Valid($set);
    }
    }

and replace with:

my @statuses;
my %seen;
foreach my $set ( 'initial', 'active' ) {
  foreach my $lifecycle ( map $lifecycle{$_}, sort keys %lifecycle ) {
      push @statuses, grep !$seen{ lc $_ }++, $lifecycle->Valid($set);
  }
}

push @statuses, 'resolved';    
  1. Find

    my $query =
    "(Status = ‘Active’ ) AND (".
    join(’ OR ', map “Queue = “.$_->{id}, @queues)
    .”)”;
    and replace with:

    my $query =
    "(Status = ‘Active’ OR Status = ‘resolved’) AND (".
    join(’ OR ', map “Queue = “.$_->{id}, @queues)
    .”)”;

  2. Do all the same with /opt/rt4/share/html/Elements/QueueSummaryByStatus

  3. rm -fr /opt/rt4/var/mason_data/obj/*

  4. restart apache