[rt-users] Creating a new report
Manoj Srivastava
srivasta at golden-gryphon.com
Fri Jan 19 15:29:33 EST 2007
Hi,
Since there was no response, I'm following up to my own mail:
The following in
/usr/local/share/request-tracker3.6/Tools/Reports/Active.html does
the trick. I also had to modify the tabs file to add the new report
/usr/local/share/request-tracker3.6/Tools/Reports/Elements/Tab
manoj
<%args>
$Query => undef
$Format => undef
$HideResults => 0
$Rows => undef
$Page => 1
$Order => undef
$OrderBy => undef
$NumDays => 14
</%args>
<%init>
my $title = loc("Active tickets, grouped by queue");
$Order ||= 'ASC|DESC';
$OrderBy = 'Queue|LastUpdated';
$Rows ||= 50;
</%init>
<& /Elements/Header, Title => $title &>
<& /Tools/Reports/Elements/Tabs, current_tab => 'Tools/Reports/Active.html', Title => $title &>
% my %hiddens = (Query => $Query, Format => $Format, Rows => $Rows, OrderBy => $OrderBy, Order => $Order, HideResults => $HideResults, Page => $Page, NumDays => $NumDays );
<form method="post" action="Active.html">
<h2 style="text-align: center;">Tickets with activity in <%$NumDays%> days</h2>
% $Query = "LastUpdated > '$NumDays days ago'";
<& /Elements/TicketList,
Query => $Query,
AllowSorting => 1,
OrderBy => $OrderBy,
Order => $Order,
Rows => $Rows,
Page => $Page,
Format => $Format,
BaseURL => $RT::WebPath."/Tools/Reports/Active.html?"
&>
<hr>
<br /><&|/l&>Number of Days in report</&>:
<input size="20" name="NumDays" value="<%$NumDays%>" />
<& /Elements/Submit&>
</form>
--
Advice to young men: Be ascetic, and if you can't be ascetic, then at
least be aseptic.
Manoj Srivastava <srivasta at acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
More information about the rt-users
mailing list