%# Never call a man a fool; borrow from him. <& /Foundry/Elements/Header, Title => 'My Page' &>

<& /Foundry/Elements/Tabs, Text => 'Overview' &>
<&|/l&>Overview >> <&|/l&>Tickets I own <&|/l&>Status: <& /Foundry/Project/Tracker/FilterStatus, Status => $Status &> <& /Foundry/Project/Tracker/List, List => $List, Begin => $Begin, URL => '/Foundry/Project/Tracker/Display.html', Hide => 'Owner', ARGS => \%ARGS &>

<& /Foundry/Elements/Footer &> <%INIT> $session{'WorkPage'} = '/Foundry/Project/Home/MyTickets.html'; my $List = RT::Tickets->new($session{'CurrentUser'}); $List->LimitOwner(VALUE => $session{'CurrentUser'}->Id); if ($Status eq 'unresolved') { $List->LimitStatus(VALUE => $_) for RT::Queue->ActiveStatusArray; } elsif ($Status eq 'resolved') { $List->LimitStatus(VALUE => $_) for grep !/deleted/, RT::Queue->InactiveStatusArray; } $List->OrderBy(FIELD => 'Id', ORDER => 'DESC'); $List = [ grep { ($_ and !$_->QueueObj->Disabled) } @{$List->ItemsArrayRef||[]} ]; <%ARGS> $Begin => 0 $Category => '' $Action => '' $Type => '' $Subject => '' $Status => ''