CF with auto-completion of usernames

Hello group,

I would like to use some more Custom Fields, mainly in the ‘assets’-section.
One of these fields should contain an username, similar to the fields ‘held-by’ and 'contact’
The creation of the Custom Field is not a major problem.

But how can I make it looking up its possible values for auto-completion between the RT-users?

It would be totally the max if this new field would integrate with the “add a person” dropdown: a third choice next to “held-by” and “contact”. But that is not necessary.

It should be possible to add multiple persons/values (not similar to the ‘owner’-field which can hold only one value)

Best regards,
Lieven Bridts

I would like to use some more Custom Fields, mainly in the assets'-section. One of these fields should contain an username, similar to the fields held-by’ and `contact’
The creation of the Custom Field is not a major problem.

But how can I make it looking up its possible values for auto-completion between the RT-users?

Use an External Custom Field
http://bestpractical.com/docs/rt/latest/extending/external_custom_fields.html
The example code fetches groups, but could easily fetch Users.

It would be totally the max if this new field would integrate with the “add a person”
dropdown: a third choice next to “held-by” and “contact”. But that is not necessary.

It should be possible to add multiple persons/values (not similar to the `owner’-field which
can hold only one value)

You can actually do this, it’s completely unrelated to a custom field.
You need to use the CreateRoleGroup method to create a new role group
and also RegisterRole the new group. There’s some significant peeking
under the covers here, but the code was all implemented explicitly for
assets and is used by a client who has non-standard roles on their
assets.

-kevin