[rt-devel] Definition

mixo mixo at beth.uniforum.org.za
Thu Nov 22 08:20:08 EST 2001


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
my $Users = RT::Users->new($session{CurrentUser});
$Users->LimitToPrivileged;

while ( my $User = $Users->Next())  {
  my $currentUserTickets =  new RT::Tickets($User);
  $currentUserTickets->LimitStatus(VALUE => "new");
  if ($currentUserTickets->Count) {
   
    my $oldest_in_sec = (time - 
$currentUserTickets->First->CreatedObj->Unix());
    .
    .
   }
}
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





More information about the Rt-devel mailing list