[rt-users] Simple ShowBasics tweak to get back to Queue

Scott A. McIntyre scott at xs4all.nl
Tue Apr 9 01:45:48 EDT 2002


Hi,

I added this the other day and thought others may find it useful;
basically, we wanted a shortcut way to get from a Ticket display screen
back to the queue that the ticket belonged.  This patch will make the
queue name in the Show Basics box a link back to the queue itself:

*** /path/to/rt2/WebRT/html/Ticket/Elements/ShowBasics        Fri Apr 5 13:54:07 2002
--- /path/to/rt2/local/WebRT/html/Ticket/Elements/ShowBasics  Mon Apr 8 13:42:41 2002
***************
*** 12,22 ****
          <& /Elements/ShadedBox, title => 'Priority', content=> $Ticket->Priority."/".$Ticket->FinalPriority &>
        </TD>
        <TD VALIGN=TOP WIDTH="20%">
          <& /Elements/ShadedBox, title => 'Queue', content=> $Ticket->QueueObj->Name &>
!       </TD>
!
        </TR>
      </TABLE>
  <%INIT>
  my $TimeWorked = $Ticket->TimeWorked;
  if ($Ticket->TimeLeft > 0 ) {
--- 12,24 ----
          <& /Elements/ShadedBox, title => 'Priority', content=>
$Ticket->Priority."/".$Ticket->FinalPriority &>
        </TD>
        <TD VALIGN=TOP WIDTH="20%">
+         <a href="/Search/Listing.html?ValueOfStatus=open&ValueOfStatus=new&StatusOp=%3D&QueueOp=%3D&ValueOfQueue=<%$Ticket->QueueObj->Id%>&RowsPerPage=50&NewSearch=1">
          <& /Elements/ShadedBox, title => 'Queue', content=> $Ticket->QueueObj->Name &>
!         </a>
!       </TD>
        </TR>
      </TABLE>
+
  <%INIT>
  my $TimeWorked = $Ticket->TimeWorked;
  if ($Ticket->TimeLeft > 0 ) {




It's really just the one line, the href, but it's saved us some time.

Scott





More information about the rt-users mailing list