Re: [rt-users] How to set a custom field on a user

2010-11-10 Thread Emmanuel Lacour
On Tue, Nov 09, 2010 at 08:14:26PM +, Giles Bradshaw wrote:
 I have created a new RT:User object and loaded it but I cannot see how
 to set one of it's custom fields.  There seem to be methods for Tickets
 but I cannot find any for Users.
 

Most customfields methods are common to all objects, and so in
RT::Record

see methods FirstCustomFieldValue to get a value and AddCustomFieldValue
to set a new value in lib/RT/Record.pm.



Re: [rt-users] ticket custom fields won't show up

2010-11-10 Thread Emmanuel Lacour
On Wed, Nov 10, 2010 at 01:48:58AM +0100, Josef wrote:
  Hi,
 I'm trying to add some custom fields to tickets. I have created
 them, added them to a corresponding queue, set SeeCustomField to
 everyone. But still only privileged users see these fields when
 creating a new ticket. Unprivileged users don't see them, but when
 they fill a request, it returns an error, as I have set these fields
 to be mandatory. Is it possible to add this, or do have all users to
 use full UI?
 

When you create a ticket, you're editing customfields so the right to
grant is not SeeCustomField, but ModifyCustomField.



[rt-users] Display user custom fields in user list

2010-11-10 Thread 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?


Thanks in advance.

Wolfram Huettermann



[rt-users] Merging CFs

2010-11-10 Thread Jean-Philippe Houde
Hi,

Quick question regarding Custom Fields. We are using RT 3.8.0 and I'm trying
the following:

1. Ticket #1 with a test CF with a value of test1
2. Ticket #2 with a test CF with a value of test2
3. Merging #2 into #1

What I'd like to end up with is to have the test CF showing both values
(test1 and test2) when I go to the merged ticket (#1 in that case). But
unfortunately, ticket #1 only show it's original value of test1. The
test2 value seems to disappear.

I've tried Enter multiple values as a CF type but it doesn't seems to do
it. Is there a way to do that?

Thanks in advanced,

Jean-Philippe






Re: [rt-users] Merging CFs

2010-11-10 Thread Emmanuel Lacour
On Wed, Nov 10, 2010 at 09:39:07AM -0500, Jean-Philippe Houde wrote:
 Hi,
 
 Quick question regarding Custom Fields. We are using RT 3.8.0 and I'm trying
 the following:
 
 1. Ticket #1 with a test CF with a value of test1
 2. Ticket #2 with a test CF with a value of test2
 3. Merging #2 into #1
 
 What I'd like to end up with is to have the test CF showing both values
 (test1 and test2) when I go to the merged ticket (#1 in that case). But
 unfortunately, ticket #1 only show it's original value of test1. The
 test2 value seems to disappear.
 
 I've tried Enter multiple values as a CF type but it doesn't seems to do
 it. Is there a way to do that?
 

that's how RT works actually, it does not merge customfields on ticket
merge.

you have to modify RT code for this (see method MergeInto in
lib/RT/Ticket_Overlay.pm).

(may be done by a scrip on transaction of type Link with field
MergedInto)



Re: [rt-users] Display user custom fields in user list

2010-11-10 Thread Emmanuel Lacour
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{'a 
href=__WebPath__/Admin/Users/Modify.html?id=__idid__/a/TITLE:#'}
.q{,'a 
href=__WebPath__/Admin/Users/Modify.html?id=__idName__/a/TITLE:Name'}
.q{,__RealName__, __EmailAddress__}
.q[, 'CF.{Test}'],
^^
   ...
);



[rt-users] Several line for a CustomField in CommandByEmail.

2010-11-10 Thread CALLEJA-ALBILLOS, FRANCK (FRANCK)** CTR **
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



Re: [rt-users] Merging CFs

2010-11-10 Thread Jean-Philippe Houde
Hi Emmanuel,

Thanks for your reply. If it can be done through scrip, would it be possible
to give me a short example that I can start with.

Thanks,

Jean-Philippe


On 10-11-10 10:53 AM, Emmanuel Lacour elac...@easter-eggs.com wrote:

 On Wed, Nov 10, 2010 at 09:39:07AM -0500, Jean-Philippe Houde wrote:
 Hi,
 
 Quick question regarding Custom Fields. We are using RT 3.8.0 and I'm trying
 the following:
 
 1. Ticket #1 with a test CF with a value of test1
 2. Ticket #2 with a test CF with a value of test2
 3. Merging #2 into #1
 
 What I'd like to end up with is to have the test CF showing both values
 (test1 and test2) when I go to the merged ticket (#1 in that case). But
 unfortunately, ticket #1 only show it's original value of test1. The
 test2 value seems to disappear.
 
 I've tried Enter multiple values as a CF type but it doesn't seems to do
 it. Is there a way to do that?
 
 
 that's how RT works actually, it does not merge customfields on ticket
 merge.
 
 you have to modify RT code for this (see method MergeInto in
 lib/RT/Ticket_Overlay.pm).
 
 (may be done by a scrip on transaction of type Link with field
 MergedInto)
 




Re: [rt-users] Merging CFs

2010-11-10 Thread Jean-Philippe Houde
I finally was able to do it using the information on this wiki page

http://wiki.bestpractical.com/view/OnMerge



On 10-11-10 11:59 AM, Jean-Philippe Houde jp...@videotron.ca wrote:

 Hi Emmanuel,
 
 Thanks for your reply. If it can be done through scrip, would it be possible
 to give me a short example that I can start with.
 
 Thanks,
 
 Jean-Philippe
 
 
 On 10-11-10 10:53 AM, Emmanuel Lacour elac...@easter-eggs.com wrote:
 
 On Wed, Nov 10, 2010 at 09:39:07AM -0500, Jean-Philippe Houde wrote:
 Hi,
 
 Quick question regarding Custom Fields. We are using RT 3.8.0 and I'm trying
 the following:
 
 1. Ticket #1 with a test CF with a value of test1
 2. Ticket #2 with a test CF with a value of test2
 3. Merging #2 into #1
 
 What I'd like to end up with is to have the test CF showing both values
 (test1 and test2) when I go to the merged ticket (#1 in that case). But
 unfortunately, ticket #1 only show it's original value of test1. The
 test2 value seems to disappear.
 
 I've tried Enter multiple values as a CF type but it doesn't seems to do
 it. Is there a way to do that?
 
 
 that's how RT works actually, it does not merge customfields on ticket
 merge.
 
 you have to modify RT code for this (see method MergeInto in
 lib/RT/Ticket_Overlay.pm).
 
 (may be done by a scrip on transaction of type Link with field
 MergedInto)
 
 
 




[rt-users] Ticket creation adds content automatically

2010-11-10 Thread Kris Germann

Hey guys,

So I'm having a bit of trouble here...

I'm trying to create a scrip to run, which is whenever a ticket is 
created for a specific queue, there is already text in the content 
window (like there is when you have a signature).


My scrip is:

Condition: On Create
Action: Create Tickets
Template: Global Template: My template (text only)
Stage: Transaction Create

No custom conditions defined,

Any ideas what I'm doing wrong?
--

Kris
Supervisor, Sales  Technical Support
freephoneline.ca
605 Boxwood Drive
Cambridge ON, N3E1A5


Re: [rt-users] Ticket creation adds content automatically

2010-11-10 Thread Mathieu Longtin
Check this thread.
http://www.gossamer-threads.com/lists/rt/users/96835

--
Mathieu Longtin
1-514-803-8977


On Wed, Nov 10, 2010 at 3:32 PM, Kris Germann kris_germ...@295.ca wrote:

  Hey guys,

 So I'm having a bit of trouble here...

 I'm trying to create a scrip to run, which is whenever a ticket is created
 for a specific queue, there is already text in the content window (like
 there is when you have a signature).

 My scrip is:

 Condition: On Create
 Action: Create Tickets
 Template: Global Template: My template (text only)
 Stage: Transaction Create

 No custom conditions defined,

 Any ideas what I'm doing wrong?
  --

 Kris
 Supervisor, Sales  Technical Support
 freephoneline.ca
 605 Boxwood Drive
 Cambridge ON, N3E1A5



Re: [rt-users] Ticket creation adds content automatically

2010-11-10 Thread Kris Germann

Thank you Mathieu, this is perfect.

Kris
Supervisor, Sales  Technical Support
freephoneline.ca
605 Boxwood Drive
Cambridge ON, N3E1A5

On 11/10/2010 04:24 PM, Mathieu Longtin wrote:

Check this thread.
http://www.gossamer-threads.com/lists/rt/users/96835

--
Mathieu Longtin
1-514-803-8977


On Wed, Nov 10, 2010 at 3:32 PM, Kris Germann kris_germ...@295.ca 
mailto:kris_germ...@295.ca wrote:


Hey guys,

So I'm having a bit of trouble here...

I'm trying to create a scrip to run, which is whenever a ticket is
created for a specific queue, there is already text in the content
window (like there is when you have a signature).

My scrip is:

Condition: On Create
Action: Create Tickets
Template: Global Template: My template (text only)
Stage: Transaction Create

No custom conditions defined,

Any ideas what I'm doing wrong?
-- 


Kris
Supervisor, Sales  Technical Support
freephoneline.ca http://freephoneline.ca
605 Boxwood Drive
Cambridge ON, N3E1A5




Re: [rt-users] Display user custom fields in user list

2010-11-10 Thread Josef

 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{'a 
href=__WebPath__/Admin/Users/Modify.html?id=__idid__/a/TITLE:#'}
 .q{,'a 
href=__WebPath__/Admin/Users/Modify.html?id=__idName__/a/TITLE:Name'}
 .q{,__RealName__, __EmailAddress__}
 .q[, 'CF.{Test}'],
 ^^
...
);



[rt-users] Fwd: UnPrivliged User question

2010-11-10 Thread Joe Kirby



Begin forwarded message:


From: Joe Kirby ki...@umbc.edu
Date: November 10, 2010 7:32:03 PM EST
To: rt-users-requ...@lists.bestpractical.com
Subject: UnPrivliged User question

I want my self service (unprivileged) user to be able to show email.

I have globally setup Requestor to have reply to ticket, show  
ticket, show outgoing email, forward email, watch.


When I test it out the Requestor cannot see the email generated by  
RT via the Show in ticket history for email


Any help is greatly appreciated

Thanks

Joe

Joe Kirby , Assistant Vice President, Business Systems
Division of Information Technology (DoIT)
Support Response - http://www.umbc.edu/oit
Administration 627
Office - 410-455-3020
Email - ki...@umbc.edu



Joe Kirby , Assistant Vice President, Business Systems
Division of Information Technology (DoIT)
Support Response - http://www.umbc.edu/oit
Administration 627
Office - 410-455-3020
Email - ki...@umbc.edu