[rt-users] Tickets I requested at a glance

Shin Imai shin.imai at etimestech.jp
Wed Jul 27 11:33:58 EDT 2005


Hi, 

I just figure it out myself. 

I just add 

my $Email = $session{CurrentUser}->EmailAddress;

and 

Requestors = '$Email'

It is working fine so far. 

Shin
On Wed, 27 Jul 2005 19:07:07 +0900
Shin Imai <shin.imai at etimestech.jp> wrote:

> Hi, 
> 
> I was trying to display "Tickets I requested" in RT at a glance. 
> I'm not really successful yet.
> 
> What I did was that I just created file as below:
> -----------------------------------------------------------------------
> <&|/Elements/TitleBox,
>         title => loc("[_1] newest Tickets I requested", $rows),
>         title_href => "Search/Results.html".$QueryString &>
> <& /Elements/TicketList,
>         Format => "'<a href=\"$RT::WebPath/Ticket/Display.html?id=__id__\">__id__</a>/TITLE:#', '<a href=\"$RT::WebPath/
> Ticket/Display.html?id=__id__\">__Subject__</a>/TITLE:Subject', QueueName, ExtendedStatus, CreatedRelative, '<A HREF=\"$
> RT::WebPath/Ticket/Display.html?Action=Take&id=__id__\">".loc('Take')."</a>/TITLE: ' ",
>         Query => $Query,
>         OrderBy => 'Created',
>         Order => 'DESC',
>         ShowNavigation => 0,
>         Rows => $rows
> 
>         &>
> </&>
> <%init>
> my $rows = $RT::MyRequestsLength;
> 
> my $Query = "Requestors = '' AND ( Status = 'new' OR Status = 'open')";
> 
> my $QueryString = '?' . $m->comp('/Elements/QueryString',
>             Query => $Query,
>             Order => 'DESC',
>             OrderBy => 'Created') if ($Query);
> 
> </%init>
> -----------------------------------------------------------------------
> And I edit index.html.
> 
> If I put an email address of a user in Requestors I get the list of
> tickets which the user requested.
> So what I need is that I want to get the variable value of email address
> of the currently logged-in user. 
> 
> Does anyone know how to do it?
> 
> Shin
> 
> -- 
> Shin Imai <shin.imai at etimestech.jp>
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com

-- 
Shin Imai <shin.imai at etimestech.jp>




More information about the rt-users mailing list