[rt-users] problem defining search criterias in quick search

Senoner Samuel Samuel.Senoner at eurac.edu
Mon Nov 10 09:15:26 EST 2003


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 @@
        <th align=left><&|/l&>Queue</&></th>
        <th align=right><font size=-1><&|/l&>New</&></font></th>
        <th align=right><font size=-1><&|/l&>Open</&></font></th>
+       <th align=right><font size=-1><&|/l&>Stalled</&></font></th>
 </tr>

 <%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++;
 <TR class="<% $i%2 ? 'oddline' : 'evenline'%>" >
-<td><A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&ValueOfStatus=new&
StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewS
earch=1" TITLE="<% $queue->Description %>"><%$queue->Name%></a></TD>
+<td><A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&ValueOfStatus=new&
ValueOfStatus=stalled&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id
%>&RowsPerPage=50&NewSearch=1" TITLE="<% $queue->Description
%>"><%$queue->Name%></a></TD>
 <td align="right"><A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=new&StatusOp=%3D&QueueO
p=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$new%></
a></TD>
 <td align="right"><A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=open&StatusOp=%3D&Queue
Op=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$open%>
</a></TD>
+<td align="right"><A HREF="<%
$RT::WebPath%>/Search/Listing.html?ValueOfStatus=stalled&StatusOp=%3D&Qu
eueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$sta
lled%></a></TD>
 </TR>
 % }
 </TABLE>

Samuel 

-----Original Message-----
From: Einar Fagertun [mailto:einar.fagertun at cc.uit.no] 
Sent: Monday,10 November,2003 14:04
To: rt-users at 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 at 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





More information about the rt-users mailing list