[rt-users] How do I determine the value of a group custom field?

Ruslan Zakirov ruslan.zakirov at gmail.com
Tue Sep 27 16:08:27 EDT 2005


On 9/26/05, David Young <davidy at funkypenguin.co.za> wrote:
> Hi guys :)
>
> I'm trying to write some code, to go through my groups, and pull out each
> group name, along with the values of two group custom fields... and I'm
> stuck on how to get the custom field values :(
>
> Here's what I've got so far:
>
> -----------
> % use RT::Groups;
> % my $Groups = new RT::Groups($session{'CurrentUser'});
>
> % $Groups->LimitToUserDefinedGroups();
> % while(my $Group = $Groups->Next) {
>
> <tr>
>   <td><% $Group->Name %></td>
See Record.pm, custom fields code now is generic and
find lib | xargs grep '^sub.*CustomField'

> -----------
>
>
>
> Thanks! :)
> - David
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>
> Buy your copy of our new book, RT Essentials, today!
>
> Download a free sample chapter from http://rtbook.bestpractical.com
>


--
Best regards, Ruslan.



More information about the rt-users mailing list