[gold-users] Re: Querying projects by user
Kevin Van Workum
vanw at tticluster.com
Mon Mar 31 15:23:46 MDT 2008
On Mon, Mar 31, 2008 at 5:16 PM, Kevin Van Workum <vanw at tticluster.com> wrote:
> 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");
> $request->setCondition("Users", $user, "Match") if defined $user;
> But can't quite figure it out.
> Kevin Van Workum, Ph.D.
Sorry, but I think I got it:
goldsh> ProjectUser Query Show:=Project Name==uid
More information about the gold-users