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/TITLE:#’, ‘<a href="$RT::WebPath/
Ticket/Display.html?id=id">Subject/TITLE:Subject’, QueueName, ExtendedStatus, CreatedRelative, '<A HREF="$
RT::WebPath/Ticket/Display.html?Action=Take&id=id">”.loc(‘Take’)."/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@etimestech.jp
Hi,
I just figure it out myself.
I just add
my $Email = $session{CurrentUser}->EmailAddress;
and
Requestors = ‘$Email’
It is working fine so far.
ShinOn Wed, 27 Jul 2005 19:07:07 +0900 Shin Imai shin.imai@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/TITLE:#’, ‘<a href="$RT::WebPath/
Ticket/Display.html?id=id">Subject/TITLE:Subject’, QueueName, ExtendedStatus, CreatedRelative, '<A HREF="$
RT::WebPath/Ticket/Display.html?Action=Take&id=id">”.loc(‘Take’)."/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@etimestech.jp
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Shin Imai shin.imai@etimestech.jp