[rt-users] JumpToQueue script

Nils-Erik Svangård nisse at dc.ltu.se
Mon Oct 4 05:29:02 EDT 2004

I have just asked questions on this mailinglist, I thougt that I should 
contribute something also.
Before upgrading we used a small script to fast jump between queues, 
that script stopped working when upgrading to RT3.2.1. I have done a 
rewrite of that script. Just cut and put in a file, I named it 
JumpToQueue, move it to Elements. You can call it from 
Seach/Results.html by adding <& Elements/JumpToQueue &> where you want 
it, I put it right after the license block.
cut here ----------------------

<FORM ACTION="<% $RT::WebPath%>/Search/Results.html">
<input type="submit" value="Jump to"> 
<input type="hidden" name="Order" value="DESC">
<input type="hidden" name="Rows" value="50">
while ( my $queue = $Queues->Next) {
    my $tempvar = "Queue = '".$queue->Name."' AND  (Status = 'open' OR 
Status = 'new')";
<OPTION VALUE="<%$tempvar%>"><%$queue->Name%></OPTION>
% }
my $Queues = RT::Queues->new($session{'CurrentUser'});
my $Tickets = RT::Tickets->new($session{'CurrentUser'});

<+--//  							\\--+>
	       Datorcentralen Luelå tekniska universitet	  
	Name:	Nils-Erik Svangård	e-mail:	nisse at dc.ltu.se	  
	Ph:	+46-920-49244		URL:http://www.dc.ltu.se  
<+--\\								//--+>

More information about the rt-users mailing list