[rt-users] RT at a Glance - show tickets I've requested?

Ham MI-ID, Torsten Brumm torsten.brumm at Kuehne-Nagel.com
Fri Mar 14 03:50:47 EDT 2008


Hi Chris, Laura,

Many weeks ago i found this piece of code (think it's from Steven Turner).

__

<&| /Widgets/TitleBox, title =>  $title &>
<& /Elements/TicketList, Title   => $title,
                         Format  => @Format,
                         Query   => $Query,
                         Order   => $Order,
                         OrderBy => $OrderBy,
                         BaseURL => $BaseURL,
                         Rows => $Rows,
                         Page    => $Page &>
</&>

<%INIT>
my $Rows = $RT::MyRequestsLength;
my $id = $session{'CurrentUser'}->id;
my $Query = "( "
    . join( ' OR ', map "$_.id = $id", @roles )
    . ")";
if ( @status ) {
    $Query .= " AND ( "
        . join( ' OR ', map "Status = '$_'", @status )
        . " )";
}
my $Order = "ASC";
my $OrderBy = "Created";
my @Format = qq{
   '<B><A HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#',
   Priority,
   Status,
   '<B><A HREF="$RT::WebPath/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject',
   QueueName,
   OwnerName};
</%INIT>

<%ARGS>
$friendly_status => loc('open')
$title => loc("My [_1] requests", $friendly_status)
@roles => ('Watcher')
@status => ('open', 'new', 'stalled', 'accepted', 'implement', 'verified', 'pending', 'authorized')
$BaseURL => undef
$Page => 1
</%ARGS>
__

Place it under /local/html/Elements and give it a good name.

Add it to your sideconfig as well

Torsten


Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Uwe Bielang (Stellv.), Bruno Mang, Alfred Manke, Thorsten Meincke, Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne


-----Ursprüngliche Nachricht-----
Von: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] Im Auftrag von Chris
Gesendet: Donnerstag, 13. März 2008 14:08
An: lgrella
Cc: RT Users
Betreff: Re: [rt-users] RT at a Glance - show tickets I've requested?

Laura,

Here's what I did for this purpose:
http://www.gossamer-threads.com/lists/rt/users/70506?#70506 . I think this is what you need, anyway.

Have fun!

On Wed, Mar 12, 2008 at 3:33 PM, lgrella <lgrella at acquiremedia.com> wrote:
>
>  Is it possible to edit a user's RT at a Glance so that in addition to 
> top 10  tickets I own and top 10 unowned tickets, it also shows the 
> user top 10  tickets that I have requested?
>
>  Thanks,
>  Laura
>  --
>  View this message in context: 
> http://www.nabble.com/RT-at-a-Glance---show-tickets-I%27ve-requested--
> tp16012526p16012526.html  Sent from the Request Tracker - User mailing 
> list archive at Nabble.com.
>
>  _______________________________________________
>  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
>  Community help: http://wiki.bestpractical.com  Commercial support: 
> sales at bestpractical.com
>
>
>  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>  Buy a copy at http://rtbook.bestpractical.com
>
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com Commercial support: sales at bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com




More information about the rt-users mailing list