[rt-users] showing pending tickets in Home view ?

asterr asterr at pobox.com
Wed Jan 14 19:45:42 EST 2004


You will need to create a custom Elements/Quicksearch in the local directory.
Copy and modify how the open and new tickets are displayed.  I have attached
a diff of how I did something similar for tickets owned by nobody.  The
diff is against rt 3.0.6.

-Aaron

On Wed, 14 Jan 2004, matthew zeier wrote:

> 
> Under "highest priority tickets I own..." I'd like to included tickets that
> are open, new or stalled.  How to get stalled tickets in that display?
> 
> 
> --
> matthew zeier                        | "Nothing in life is to be feared.
> InteleNet Communications, Inc.       |  It is only to be understood."
> (949) 784-7904                       |       - Marie Curie
> 
> _______________________________________________
> rt-users mailing list
> rt-users at lists.bestpractical.com
> http://lists.bestpractical.com/mailman/listinfo/rt-users
> 
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
> 
> 
> 
-------------- next part --------------
--- share/html/Elements/Quicksearch	2003-09-25 16:31:06.000000000 -0400
+++ local/html/Elements/Quicksearch	2003-10-20 01:43:05.000000000 -0400
@@ -26,6 +26,7 @@
 <TABLE BORDER=0 cellspacing=0 cellpadding=1 WIDTH=100%>                       
 <tr>                                                                          
        <th align=left><&|/l&>Queue</&></th>                                         
+       <th align=right><font size=-1><&|/l&>Nobody</&></font></th>
        <th align=right><font size=-1><&|/l&>New</&></font></th>
        <th align=right><font size=-1><&|/l&>Open</&></font></th>          
 </tr>
@@ -43,10 +44,18 @@
      $Tickets->LimitQueue(VALUE => $queue->Name, OPERATOR => '=');            
      my $new = $Tickets->Count();
 
+     $Tickets->ClearRestrictions;                                           
+     $Tickets->LimitOwner(VALUE => "Nobody");
+     $Tickets->LimitStatus(VALUE=> "new");
+     $Tickets->LimitStatus(VALUE=> "open");
+     $Tickets->LimitQueue(VALUE => $queue->Name, OPERATOR => '=');            
+     my $nobody = $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&NewSearch=1" TITLE="<% $queue->Description %>"><%$queue->Name%></a></TD>
+<td align="right"><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfOwner=Nobody&OwnerOp=%3D&ValueOfStatus=new&ValueOfStatus=open&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$nobody%></a></TD>
 <td align="right"><A HREF="<% $RT::WebPath%>/Search/Listing.html?ValueOfStatus=new&StatusOp=%3D&QueueOp=%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&QueueOp=%3D&ValueOfQueue=<%$queue->Id%>&RowsPerPage=50&NewSearch=1"><%$open%></a></TD>
 </TR>


More information about the rt-users mailing list