[rt-devel] Understanding RT:Users

Jesse Vincent jesse at bestpractical.com
Thu Sep 20 16:49:13 EDT 2001


RT::Users, like all of the collection objects in RT is a subclass of DBIx::SearchBuilder.


You can either call while (my $user = $users->Next) {

or work with $users->ItemsArrayRef



On Thu, Sep 20, 2001 at 11:57:33AM -0700, matthew zeier wrote:
> 
> I'm trying to work on a nag script that uses the RT infrastructure.
> 
> I want to gather a list of group members and cycle through their open/new
> tickets that haven't been updated in $x days.  I'm using some nag script I
> found in contrib or somewhere else as a framework.
> 
> I'm unclear on how to get a list of group members.
> 
> my $users = new RT::Users->MemberOfGroup('6');
> 
> How do I cycle through that list?
> 
> 
> 
> --
> matthew zeier - "In mathematics you don't understand things.  You just
> get used to them." - John von Newmann
> 
> 
> _______________________________________________
> rt-devel mailing list
> rt-devel at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-devel
> 

-- 
http://www.bestpractical.com/products/rt  -- Trouble Ticketing. Free.




More information about the Rt-devel mailing list