[rt-devel] Showing open tickets in queues user has OwnTicket rights

Matthew Watson mwatson at netspace.net.au
Fri Jan 4 01:23:33 EST 2002


Heya,

 I've created an "openTickets" Element, which basically just shows the top
25 open tickets in queues the user has read access to, but limiting it with

my $OpenTickets;
$OpenTickets = new RT::Tickets ($session{'CurrentUser'});
$OpenTickets->LimitStatus(VALUE => "open");
$OpenTickets->LimitStatus(VALUE => "new");
$OpenTickets->LimitOwner(VALUE => "Nobody");
$OpenTickets->OrderBy(FIELD => 'Priority', ORDER => 'DESC');
$OpenTickets->RowsPerPage(25);

Now I would like to make it so it ONLY shows tickets that the user can own,
eg, only tickets in relevent queues.. Is there an easy way to do this?


----------------------------------------------
Matthew Watson
Development, Netspace Online Systems
mwatson at netspace.net.au





More information about the Rt-devel mailing list