Display user custom fields in user list

Hi,

I have a user list with the entries “id”, “name”, “real name” and
"e-mail address". I have created a user custom field “hobbies” and I
want to display it in that list as an additional column. How is it
possible? What should I do?

Thanks in advance.

Wolfram Huettermann

Hi,

I have a user list with the entries “id”, “name”, “real name” and
“e-mail address”. I have created a user custom field “hobbies” and
I want to display it in that list as an additional column. How is it
possible? What should I do?

on recent RT 3.8.8, you should be able to do this with configuration
variable %AdminSearchResultFormat.

example to display CF “Test”:

Set(%AdminSearchResultFormat,

Users =>
q{‘id/TITLE:#’}
.q{,‘Name/TITLE:Name’}
.q{,RealName, EmailAddress}
.q[, ‘CF.{Test}’],
^^^^^^^^^^^^^^^^^^

);

Hello,

I want to create tickets through CommandByEmail and fulfill some CustomFields. One of them is a text area (including several lines), but I don’t know how to format the mail so that it takes the “Carriage Return” or “Line Feed” into account :

I’ve tried :

CustomField.{Adresse}:“6, rue Léonard de Vinci - BP 0119
53001 LAVAL”

CustomField.{Adresse}:6, rue Léonard de Vinci - BP 0119
53001 LAVAL

CustomField.{Adresse}:6, rue Léonard de Vinci - BP 0119
AddCustomField.{Adresse}:53001 LAVAL

None seems to work. Or perhaps I’m wrong.
Every else other Field ou CustomField is updated correctly.

How can I do ?

Thanks for your help,
Franck CALLEJA-ALBILLOS

I have a simillar question,
how could I display these user fields in a script? I have tried
something like

{$Ticket->CustomFieldValues(‘MyCustomField’)}
but it returns some hash…

{$Ticket->MyCustomField}
doesn’t work as well

Dne 11/10/10 5:03 PM, Emmanuel Lacour napsal(a):> On Wed, Nov 10, 2010 at 04:21:53PM +0100, Wolfram Huettermann wrote:

Hi,

I have a user list with the entries “id”, “name”, “real name” and
“e-mail address”. I have created a user custom field “hobbies” and
I want to display it in that list as an additional column. How is it
possible? What should I do?

on recent RT 3.8.8, you should be able to do this with configuration
variable %AdminSearchResultFormat.

example to display CF “Test”:

Set(%AdminSearchResultFormat,

Users =>
q{‘id/TITLE:#’}
.q{,‘Name/TITLE:Name’}
.q{,RealName, EmailAddress}
.q[, ‘CF.{Test}’],
^^^^^^^^^^^^^^^^^^

);

Josef,

Your question is unrelated to this thread. Start a new thread next time.

CustomFieldValues returns an object, not a hash. You use it when cf may have
multiple values. Otherwise use FirstCustomFieldValue method.

Regards, Ruslan. From phone.

I have a simillar question,
how could I display these user fields in a script? I have tried
something like

{$Ticket->CustomFieldValues(‘MyCustomField’)}
but it returns some hash…

{$Ticket->MyCustomField}
doesn’t work as well

Dne 11/10/10 5:03 PM, Emmanuel Lacour napsal(a):

Hi,

I have a user list with the entries “id”, “name”, “real name” and
“e-mail address”. I have created a user custom field “hobbies” and
I want to display it in that list as an additional column. How is it
possible? What should I do?

on recent RT 3.8.8, you should be able to do this with configuration
variable %AdminSearchResultFormat.

example to display CF “Test”:

Set(%AdminSearchResultFormat,

Users =>
q{‘id/TITLE:#’}
.q{,‘Name/TITLE:Name’}

Hi

Try spaces in the beginning of a new line.

Cf: bla
Bla
Bla

Regards, Ruslan. From phone.
2010 11 10 19:53 пользователь “CALLEJA-ALBILLOS, FRANCK (FRANCK)** CTR **” <
Franck.Calleja-Albillos@alcatel-lucent.com> написал:

Hello,

I want to create tickets through CommandByEmail and fulfill some
CustomFields. One of them is a text area (including several lines), but I
don’t know how to format the mail so that it takes the “Carriage Return” or
“Line Feed” into account :

Hi,

Thanks for your answer.

It doesn’t work. Looking at the code, seems there is a line for removing trailing and leading space (line 208 in TakeAction.pm), no ?

I tried also with addition of \n to force MYSQL interpret a carriage return, but the \n appear as a simple char string and isn’t interpreted.

Cdt,

Franck CALLEJA-ALBILLOS
TREFLE pour Alcatel-Lucent
Centre de Compétences Managed Services - IP/MPLS

Tél. : +33 1 30 77 1362
Email : franck.calleja-albillos@alcatel-lucent.commailto:franck.calleja-albillos@alcatel-lucent.comDe : ruslan.zakirov@gmail.com [mailto:ruslan.zakirov@gmail.com] De la part de Ruslan Zakirov
Envoyé : jeudi 11 novembre 2010 14:44
À : CALLEJA-ALBILLOS, FRANCK (FRANCK)** CTR **
Cc : rt-users@lists.bestpractical.com
Objet : Re: [rt-users] Several line for a CustomField in CommandByEmail.

Hi

Try spaces in the beginning of a new line.

Cf: bla
Bla
Bla

Regards, Ruslan. From phone.