Re: [rt-users] Additional status in Quicksearch results but not in Quicksearch box

2010-06-08 Thread Markus.Kummer
Hi Kevin,

thanks a lot for your hint. I changed QueueSummary and it works!
I'm not sure if it is the right way but this is what I did.

local/html/Elements/QueueSummary:
--- %   my $all_q = $queue_cond . (.join(  OR , map $_-{cond}, 
@$conditions).);
+++ %   my $all_q = $queue_cond . (.join(  OR , map $_-{cond},{cond = 
Status = 'accepted', name = loc ('accepted') },{cond = Status = 'fixed', 
name = loc ('fixed') },{cond = Status = 'verified', name = loc 
('verified') },{cond = Status = 'new', name = loc ('new') },{cond = 
Status = 'open', name = loc ('open') } ).);

Best regards,

Markus


-Ursprüngliche Nachricht-
Von: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] Im Auftrag von Kevin Falcone
Gesendet: Donnerstag, 3. Juni 2010 17:34
An: rt-users@lists.bestpractical.com
Betreff: Re: [rt-users] Additional status in Quicksearch results but not in 
Quicksearch box

On Wed, Jun 02, 2010 at 01:27:06PM +0200, markus.kum...@t-systems.com wrote:
 Hi Everybody,
 
 I upgraded from RT 3.4.6 to RT 3.8.8.
 
 In 3.4.6 it was possible to extend the default Quicksearch results to include 
 other status than new and open without showing them in the Quicksearch box 
 as a new column on the RT at a glance page.
 I added the following to etc/RT_SiteConfig.pm
 
 @ActiveStatus = qw(new open accepted fixed verified) unless 
 @ActiveStatus; @InactiveStatus = qw(resolved rejected deleted) unless 
 @InactiveStatus;
 
 That created the new status accepted fixed verified and rejected.
 
 I changed local/html/Elements/Quicksearch
 
 --- my $all_q = Queue = '$qid' AND (Status = 'open' OR Status = 
 'new');
 +++ my $all_q = Queue = '$qid' AND ( Status = 'new' OR Status = 
 +++ 'open' OR Status = 'accepted' OR Status = 'fixed' OR Status = 
 +++ 'verified');
 
 and the new status showed up on the Quicksearch results page but not in the 
 QuickSearch box itself.
 
 
 In RT 3.8.8 this doesn't work anymore:
 
 Adding the new status accepted fixed and verified to
 
 Set(@ActiveStatus, qw(new open stalled));
 
 the status appear as expected in the ticket creation form but additionally as 
 a new column in the Quick Search Box also.
 Adding them to
 
 Set(@InactiveStatus, qw(accepted fixed verified resolved rejected 
 deleted));
 
 gives me the new status for ticket creation. They don't show up in the Quick 
 Search box but in the Qicksearch results neither.
 After searching the mailing list archives (e.g. 
 http://www.gossamer-threads.com/lists/rt/users/86368?search_string=Qui
 cksearch;#86368) I edited the html/Elements/Quicksearch file as 
 follows
 
 --- my @conditions = ();
 +++ my @conditions = ( {cond = Status = 'accepted', name = loc
 +++ ('accepted') }, {cond = Status = 'fixed', name = loc ('fixed') 
 +++ }, {cond = Status = 'verified', name = loc ('verified') }, 
 +++ {cond = Status = 'requested', name = loc ('rejected') } );
 
 The result is the same as setting them in the ActiveStatus in 
 RT_SiteConfig.pm.
 The status show up in the Quicksearch box as a new column AND on the 
 Quicksearch results page.
 
 Is it possible to configure RT to exclude the extra status in the Quicksearch 
 box but still see them in the results?

I assume see them in the results means see them when you click on the queue 
name.  Sounds like you want to hack the definition of $all_q in an overlay of 
QueueSummary rather than touching Quicksearch

-kevin


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


[rt-users] Additional status in Quicksearch results but not in Quicksearch box

2010-06-02 Thread Markus.Kummer
Hi Everybody,

I upgraded from RT 3.4.6 to RT 3.8.8.

In 3.4.6 it was possible to extend the default Quicksearch results to include 
other status than new and open without showing them in the Quicksearch box as 
a new column on the RT at a glance page.
I added the following to etc/RT_SiteConfig.pm 

@ActiveStatus = qw(new open accepted fixed verified) unless @ActiveStatus;
@InactiveStatus = qw(resolved rejected deleted) unless @InactiveStatus;

That created the new status accepted fixed verified and rejected.

I changed local/html/Elements/Quicksearch 

--- my $all_q = Queue = '$qid' AND (Status = 'open' OR Status = 'new');
+++ my $all_q = Queue = '$qid' AND ( Status = 'new' OR Status = 'open' OR 
Status = 'accepted' OR Status = 'fixed' OR Status = 'verified');

and the new status showed up on the Quicksearch results page but not in the 
QuickSearch box itself.


In RT 3.8.8 this doesn't work anymore:

Adding the new status accepted fixed and verified to

Set(@ActiveStatus, qw(new open stalled));

the status appear as expected in the ticket creation form but additionally as a 
new column in the Quick Search Box also.
Adding them to

Set(@InactiveStatus, qw(accepted fixed verified resolved rejected deleted));

gives me the new status for ticket creation. They don't show up in the Quick 
Search box but in the Qicksearch results neither.
After searching the mailing list archives (e.g. 
http://www.gossamer-threads.com/lists/rt/users/86368?search_string=Quicksearch;#86368)
 I edited the html/Elements/Quicksearch file as follows

--- my @conditions = ();
+++ my @conditions = ( {cond = Status = 'accepted', name = loc ('accepted') 
},
+++ {cond = Status = 'fixed', name = loc ('fixed') },
+++ {cond = Status = 'verified', name = loc ('verified') },
+++ {cond = Status = 'requested', name = loc ('rejected') } );

The result is the same as setting them in the ActiveStatus in RT_SiteConfig.pm.
The status show up in the Quicksearch box as a new column AND on the 
Quicksearch results page.

Is it possible to configure RT to exclude the extra status in the Quicksearch 
box but still see them in the results?

Thank you for any help,

Markus

Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com