[rt-users] Default status' for queue lists.

Curtis Bruneau curtisb at vianet.ca
Mon Aug 18 17:06:21 EDT 2008


Ole Craig wrote:
> Curtis -
>     I don't think there's a config option for this; it's hardcoded into
> the Quicksearch element. I needed to do something similar, but in my
> case, it was *adding* some statuses to the quicksearch queue listing (we
> use a couple of extra non-default states: pendres for 'pending
> resolution', 'developmt' for escalations to Engineering, &etc.)
>
>     I ended up by copying share/html/Elements/Quicksearch to
> local/html/Elements, and then editing the copy. (It's a really simple
> change, as RT customizations go.)
>
> # diff -NauBb share/html/Elements/Quicksearch local/html/Elements/Quicksearch
> --- share/html/Elements/Quicksearch	2008-08-15 18:53:03.000000000 -0600
> +++ local/html/Elements/Quicksearch	2008-08-13 12:41:54.000000000 -0600
> @@ -53,6 +53,9 @@
>     queue_filter => sub { $_->CurrentUserHasRight('ShowTicket') && !exists $unwanted->{$_->Name} },
>     conditions => [ {cond => "Status = 'new'",  name => loc ('new')  },
>  		   {cond => "Status = 'open'", name => loc ('open') },
> +                   {cond => "Status = 'pending'", name => loc ('pending') },
> +                   {cond => "Status = 'developmt'", name => loc ('developmt') },
> +                   {cond => "Status = 'pendres'", name => loc ('pendres') },
>  		   {cond => "Status = 'stalled'", name => loc ('stalled') }] &>
>  </&>
>  </div>
>
>
>
> -  
> /Ole Craig
> Security Engineer
> Team lead, customer support
>
> ocraig at stillsecure.com
> 303-381-3802 main support line
> 303-381-3824 my voicemail
> 303-381-3880 fax
>
> www.stillsecure.com
>
>
> On Fri, 2008-08-15 at 12:23 -0400, Curtis Bruneau wrote:
>   
>> In the Quick Search queue listing on RT at a Glance is there a way to 
>> change the default status' that is searched? It individually shows 
>> new/open/stalled and the queue link itself has all three.. I would
>> like 
>> to exclude stalled from the main link. I know I could achieve this 
>> editing files but just wondering if there was a configuration way.
>> Our 
>> 3.4 excluded stalled ( i don't know if this is custom or not, I
>> didn't 
>> originally set it up ).
>>     
Thanks yeah, I figured as much .. I ended up making my own version in 
local/html/Elements/QuickSummary .. that's the one I had in mind I was 
able to remove the stalled from the Queue link.

%   my $all_q = $queue_cond . "(Status = 'open' OR Status = 'new')";

Curtis



More information about the rt-users mailing list