Re: [rt-users] CustomField that displays users

2012-01-09 Thread Kevin Falcone
On Sun, Jan 08, 2012 at 04:21:41PM +0400, Ruslan Zakirov wrote:
> On Fri, Jan 6, 2012 at 01:42, Brent Wiese  wrote:
> > Thanks! Slight modifications to the Groups.pm worked great...
> >
> > Except for 1 thing. Once I make a CF source be my new module inside the CF, 
> > I can't change it back to "Provide List..." It just goes back to CF display 
> > unchanged.
> >
> > Is changing the CF data source a 1 way operation?
> 
> No, it's not. We had a bug and it has been fixed. Not sure in which
> version it showed up, it may be still scheduled for upcoming release.

I believe the branch is still unmerged because the author has a few
changes to make that were found while I was testing the proposed fix.
http://issues.bestpractical.com/Ticket/Display.html?id=18274

-kevin


pgp2oDTYhXpCg.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

Re: [rt-users] CustomField that displays users

2012-01-08 Thread Ruslan Zakirov
On Fri, Jan 6, 2012 at 01:42, Brent Wiese  wrote:
> Thanks! Slight modifications to the Groups.pm worked great...
>
> Except for 1 thing. Once I make a CF source be my new module inside the CF, I 
> can't change it back to "Provide List..." It just goes back to CF display 
> unchanged.
>
> Is changing the CF data source a 1 way operation?

No, it's not. We had a bug and it has been fixed. Not sure in which
version it showed up, it may be still scheduled for upcoming release.

-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5 & 6, 2012


Re: [rt-users] CustomField that displays users

2012-01-05 Thread Brent Wiese

On Tue, Jan 03, 2012 at 10:43:54AM -0700, Brent Wiese wrote:
> >That's what a "User-defined" Group is. It is a subset of Privileged users 
> >that you put in as members.
> 
> Yeah, I have those. Everyone I want to display is in a group I've defined, 
> but I didn't want to assume I could populate on groups.
> 
> >I have some code that will put all members of a group into a Custom Field.
> 
> That would be awesome if you could share. I was a little surprised I wasn't 
> able to find anyone asking about it via my searches. I would have thought it 
> would be somewhat common.

The example External Custom Field that ships with RT puts groups into a CF, so 
you should be able to mod that easily to do privileged users.

/opt/rt4/docs/extending/external_custom_fields.pod

-kevin

---

Thanks! Slight modifications to the Groups.pm worked great...

Except for 1 thing. Once I make a CF source be my new module inside the CF, I 
can't change it back to "Provide List..." It just goes back to CF display 
unchanged. 

Is changing the CF data source a 1 way operation?


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5 & 6, 2012


Re: [rt-users] CustomField that displays users

2012-01-03 Thread Kevin Falcone
On Tue, Jan 03, 2012 at 10:43:54AM -0700, Brent Wiese wrote:
> >That's what a "User-defined" Group is. It is a subset of Privileged users 
> >that you put in as members.
> 
> Yeah, I have those. Everyone I want to display is in a group I've defined, 
> but I didn't want to assume I could populate on groups.
> 
> >I have some code that will put all members of a group into a Custom Field.
> 
> That would be awesome if you could share. I was a little surprised I wasn't 
> able to find anyone asking about it via my searches. I would have thought it 
> would be somewhat common.

The example External Custom Field that ships with RT puts groups into
a CF, so you should be able to mod that easily to do privileged users.

/opt/rt4/docs/extending/external_custom_fields.pod

-kevin


pgpsiJbMvqBaA.pgp
Description: PGP signature

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

Re: [rt-users] CustomField that displays users

2012-01-03 Thread Brent Wiese
>That's what a "User-defined" Group is. It is a subset of Privileged users that 
>you put in as members.

Yeah, I have those. Everyone I want to display is in a group I've defined, but 
I didn't want to assume I could populate on groups.

>I have some code that will put all members of a group into a Custom Field.

That would be awesome if you could share. I was a little surprised I wasn't 
able to find anyone asking about it via my searches. I would have thought it 
would be somewhat common.

Thanks!
Brent


RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston  March 5 & 6, 2012


Re: [rt-users] CustomField that displays users

2011-12-29 Thread Kenneth Crocker
Brent,

That's what a "User-defined" Group is. It is a subset of Privileged users
that you put in as members.

I have some code that will put all members of a group into a Custom Field.

Kenn

On Thu, Dec 29, 2011 at 1:15 PM, Brent Wiese  wrote:

> Is there a way to have a custom field be a pre-filled dropdown of all the
> current “privileged” users?
>
> ** **
>
> A subset would be even better – like members of a specific group or
> something unique in their user profile (like “extra info” = “QA Dept” or
> something).
>
> ** **
>
> Thanks!
>
> Brent
>
> 
> RT Training Sessions (http://bestpractical.com/services/training.html)
> * Boston — March 5 & 6, 2012
>

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012

[rt-users] CustomField that displays users

2011-12-29 Thread Brent Wiese
Is there a way to have a custom field be a pre-filled dropdown of all the 
current "privileged" users?

A subset would be even better - like members of a specific group or something 
unique in their user profile (like "extra info" = "QA Dept" or something).

Thanks!
Brent

RT Training Sessions (http://bestpractical.com/services/training.html)
* Boston — March 5 & 6, 2012