We have added a new status, “stalled” in RTs Quick search display.
We have managed to display the stalled items on “quick search” and in “refine search”. We also want the stalled option to be displayed under “current search criteria”, when u click the “queue name” in Quick search (It currently only search for ‘queue’, status ‘open’ and ‘new’).
What file do we have to edit? It seems like the status is stored in a special status array, but I don’t know where the new status is inserted into this array.
Einar
Look at this, this is my diff for adding stalled tickets to quick
search:
You probably need the one before the last added line.
— /usr/share/request-tracker3/html/Elements/Quicksearch
2003-07-12 10:24:37.000000000 +0200
+++ /usr/local/share/request-tracker3/html/Elements/Quicksearch
2003-10-17 17:48:02.000000000 +0200
@@ -28,6 +28,7 @@
<&|/l&>Queue</&>
<&|/l&>New</&>
<&|/l&>Open</&>
<%PERL>
@@ -43,12 +44,18 @@
$Tickets->LimitQueue(VALUE => $queue->Name, OPERATOR => ‘=’);
my $new = $Tickets->Count();
-
$Tickets->ClearRestrictions;
-
$Tickets->LimitStatus(VALUE => "stalled");
-
$Tickets->LimitQueue(VALUE => $queue->Name, OPERATOR => '=');
-
my $stalled = $Tickets->Count();
</%PERL>
% $i++;
-
<%$queue->Name%>
+
<%$queue->Name%>
<%$new%>
<%$open%>
+
<%$sta
lled%>
% }
Samuel-----Original Message-----
From: Einar Fagertun [mailto:einar.fagertun@cc.uit.no]
Sent: Monday,10 November,2003 14:04
To: rt-users@lists.fsck.com
Subject: [rt-users] problem defining search criterias in quick search
We have added a new status, “stalled” in RTs Quick search display.
We have managed to display the stalled items on “quick search” and in
“refine search”. We also want the stalled option to be displayed under
“current search criteria”, when u click the “queue name” in Quick search
(It currently only search for ‘queue’, status ‘open’ and ‘new’).
What file do we have to edit? It seems like the status is stored in a
special status array, but I don’t know where the new status is inserted
into this array.
Einar
rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm