<% $RT::rtname %> - New Tickets <% $RT::WebBaseURL %> <% $RT::Organization %> % while (my $tick =$tickets->Next) { <%$tick->Subject|n%>(<%$tick->Id|n%>) <% $RT::WebBaseURL %>/Foundry/Project/Tracker/Display.html?id=<%$tick->Id|n%>&Queue=<%$tick->Queue|n%> % } % $m->abort; <%INIT> $r->content_type('text/xml'); my $tickets = RT::Tickets->new($RT::SystemUser); if ($Queue) { $tickets->LimitQueue(VALUE => $Queue); } else { $tickets->LimitToEnabledQueues; } $tickets->LimitStatus(VALUE => 'new', OPERATOR => '='); $tickets->LimitStatus(VALUE => 'open', OPERATOR => '='); $tickets->OrderBy(FIELD => 'id', ORDER => 'DESC'); $tickets->RowsPerPage(3); <%ARGS> $Queue => undef