[rt-users] Organisations vs individual requestors
Bruce Campbell
bruce_campbell at ripe.net
Sat Feb 1 05:58:33 EST 2003
On Sat, 1 Feb 2003, Andrew Pollock wrote:
> I've added an Organisation column, but I don't know how to display the
> Organization field of the requestor user. Is there any documentation on
> the objects and their properties? I tried RequestorObj->Organization as a
> wild punt, but it didn't work.
From your ticket object, you can do the following:
my %orgs_seen = ();
my $requestors = $this_ticket->Requestors;
while( my $requestor = $requestors->Next ){
$orgs_seen{$requestor->OwnerObj->Organization}++;
}
# Then see whats in %orgs_seen for display.
Requestors on a ticket (RT 2.0.x) are 'watcher' objects of a particular
type, which are then 'owned' by User objects, which has the mispelled
'Organization' field. A given ticket can have multiple 'requestors', so
be sure to take that into account.
Regards,
--
Bruce Campbell RIPE
Systems/Network Engineer NCC
www.ripe.net - PGP562C8B1B Operations/Security
More information about the rt-users
mailing list