Simple ShowBasics tweak to get back to Queue

Oops. I really should have sent this to rt-devel. Anyway:

----- Forwarded message from “Scott A. McIntyre” scott@xs4all.nl -----From: “Scott A. McIntyre” scott@xs4all.nl
Date: Tue, 9 Apr 2002 07:45:48 +0200
To: RT-Users rt-users@lists.fsck.com
Subject: [rt-users] Simple ShowBasics tweak to get back to Queue

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 &>


<& /Elements/ShadedBox, title => ‘Queue’, content=> $Ticket->QueueObj->Name &>
!
!


<%INIT>
my $TimeWorked = $Ticket->TimeWorked;
if ($Ticket->TimeLeft > 0 ) {
— 12,24 ----
<& /Elements/ShadedBox, title => ‘Priority’, content=>
$Ticket->Priority.“/”.$Ticket->FinalPriority &>

  •     <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 &>
    

!
!


<%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

----- End forwarded message -----

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 &>


<& /Elements/ShadedBox, title => ‘Queue’, content=> $Ticket->QueueObj->Name &>
!
!


<%INIT>
my $TimeWorked = $Ticket->TimeWorked;
if ($Ticket->TimeLeft > 0 ) {
— 12,24 ----
<& /Elements/ShadedBox, title => ‘Priority’, content=>
$Ticket->Priority."/".$Ticket->FinalPriority &>

  •     <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 &>
    

!
!




<%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