Modifying Quick Search in RT 3.8.1

Greetings everyone!

I have two questions for this post.

Basics:
I’m running RT 3.8.1 on Linux Ubuntu 8.04 Hardy, Apache 2.2.8, Perl 5.8.8,
and MySQL 5.0.51a-3ubuntu5.1. We have added a custom status of “Staged” to
indicate when a ticket is open, but pending some action by other departments
(ie, it is staged and waiting on approval to be moved into production). I
followed the instructions found in this forum for adding that custom status
and it works great.

The Problems:

  1. We want to add a column to the Quick Search on the RT at a Glance
    screen for Staged. So, across the top of Quick Search you would see *Queue
    New Open *Stalled Staged. I have hunted and hunted and can’t figure out
    how to do that. Is it possible?
  2. Once you click on a queue, we want to ensure that tickets with a
    status of staged show up in the list.

Thanks in advance for your time and assistance!
-Chris

We want to add a column to the Quick Search on the RT at a Glance screen for
Staged. So, across the top of Quick Search you would see Queue New Open
Stalled Staged. I have hunted and hunted and can’t figure out how to do
that. Is it possible?
You have to be root to edit the global queries for widgets on the front page,
but Quicksearch appears to be special, and apparently requires tweaking
a local copy of share/html/Elements/Quicksearch; it’s a simple file though.

Once you click on a queue, we want to ensure that tickets with a status of
staged show up in the list.
Add Staged to @ActiveStatus in RT_SiteConfig.pm
(copying from RT_Config.pm as necessary)

Cambridge Energy Alliance: Save money. Save the planet.

Sweet. I was able to figure out that page no problem and after a quick
restart of Apache2, staged now shows in the quick search.

Interestingly, I had already added the line:
Set(@ActiveStatus, qw(new open stalled staged));
to RT_SiteConfig.pm and it still isn’t showing up in those queries…

Any other thoughts on solving the second issue?
-ChrisOn Fri, Feb 13, 2009 at 1:04 PM, Jerrad Pierce < jpierce@cambridgeenergyalliance.org> wrote:

We want to add a column to the Quick Search on the RT at a Glance screen
for
Staged. So, across the top of Quick Search you would see Queue New Open
Stalled Staged. I have hunted and hunted and can’t figure out how to do
that. Is it possible?
You have to be root to edit the global queries for widgets on the front
page,
but Quicksearch appears to be special, and apparently requires tweaking
a local copy of share/html/Elements/Quicksearch; it’s a simple file though.

Once you click on a queue, we want to ensure that tickets with a status
of
staged show up in the list.
Add Staged to @ActiveStatus in RT_SiteConfig.pm
(copying from RT_Config.pm as necessary)


Cambridge Energy Alliance: Save money. Save the planet.

OK. I was able to solve the last problem here as well!

I went to rt3/share/html/Elements/QueueSummary and added OR Status =
‘staged’
to the following line:
% my $all_q = $queue_cond . “(Status = ‘open’ OR Status = ‘new’ OR Status
= ‘stalled’ OR Status = ‘staged’)”;

I imagine this isn’t the best way to do this as it will be overwritten if we
do any upgrades. Is there a config file I can put this in?

Thanks so very much for all the help!
-Chris

% my $all_q = $queue_cond . “(Status = ‘open’ OR Status = ‘new’ OR Status
= ‘stalled’ OR Status = ‘stalled’)”;On Fri, Feb 13, 2009 at 1:16 PM, Chris Nelson cnelson@delivra.com wrote:

Sweet. I was able to figure out that page no problem and after a quick
restart of Apache2, staged now shows in the quick search.

Interestingly, I had already added the line:
Set(@ActiveStatus, qw(new open stalled staged));
to RT_SiteConfig.pm and it still isn’t showing up in those queries…

Any other thoughts on solving the second issue?
-Chris

On Fri, Feb 13, 2009 at 1:04 PM, Jerrad Pierce < jpierce@cambridgeenergyalliance.org> wrote:

We want to add a column to the Quick Search on the RT at a Glance screen
for
Staged. So, across the top of Quick Search you would see Queue New Open
Stalled Staged. I have hunted and hunted and can’t figure out how to do
that. Is it possible?
You have to be root to edit the global queries for widgets on the front
page,
but Quicksearch appears to be special, and apparently requires tweaking
a local copy of share/html/Elements/Quicksearch; it’s a simple file
though.

Once you click on a queue, we want to ensure that tickets with a status
of
staged show up in the list.
Add Staged to @ActiveStatus in RT_SiteConfig.pm
(copying from RT_Config.pm as necessary)


Cambridge Energy Alliance: Save money. Save the planet.

Chris Nelson wrote:

OK. I was able to solve the last problem here as well!

I went to rt3/share/html/Elements/QueueSummary and added OR Status
= ‘staged’
to the following line:
% my $all_q = $queue_cond . “(Status = ‘open’ OR Status = ‘new’ OR
Status = ‘stalled’ OR Status = ‘staged’)”;

I imagine this isn’t the best way to do this as it will be overwritten
if we do any upgrades. Is there a config file I can put this in?

I’d posted a patch for this that was accepted (not sure if it is 3.8.2,
but could be) so all you should have to change us QuickSearch – the
line above becomes:

my $all_q = $queue_cond . “(” . join(" OR ", map { $_->{cond} }
@$conditions) . “)”;

Then, all you need to do is add to the conditions list in QuickSearch.

Regards,
MarkMark D. Nagel, CCIE #3177 mnagel@willingminds.com
Principal Consultant, Willing Minds LLC (http://www.willingminds.com)
cell: 949-279-5817, desk: 714-495-4001, fax: 949-623-9854

*** Please send support requests to support@willingminds.com! ***