[gold-users] Querying projects by user

Kevin Van Workum vanw at tticluster.com
Mon Mar 31 15:16:43 MDT 2008


Hi,

I'd like to get a list of all the projects to which a particular user
belongs. glsprojects will show the users that belong to a project, but
how do I do the reverse?

I unsuccessfully tried:

gold> Project Query Users ~ vanw
Users is not a valid attribute for the Project object

Actually, I'd like to write a Perl script to do this, so I need something like:

my $request = new Gold::Request(object => "Project", action => "Query");
Gold::Client::buildSupplements($request);
$request->setCondition("Users", $user, "Match") if defined $user;

But can't quite figure it out.

Thanks.
-- 
Kevin Van Workum, Ph.D.


More information about the gold-users mailing list