Re: [rt-users] how to transmit a value of custom field on an other custom field

2009-03-25 Thread hanane ourdani
I try to add this test: {$Ticket-FirstCustomFieldValue('Your Custom Field
Name');} on my template but that doesn't work,

Can you help me please,


2009/3/24 hanane ourdani hanane.ourd...@gmail.com

 Hi all,

 I'm looking for a way to add tickets automatically when a select a value of
 a Custom field, I try to do this:


 Condition: defined by user
 Action: Create tickets
 Template: Approved
 Stage: TransactionCreate

 Condition:

 return undef unless
 ($self-TicketObj-FirstCustomFieldValue('test2') =~ /Oui/i);
 return 1;

 Template:

 ===Create-Ticket: codereview
 Subject: Code review for {$Tickets{'TOP'}-Subject}
 Depended-On-By: TOP
 Queue: Test
 Type: approval
 Content: Someone has created a ticket. you should review and approve it, so
 they can finish their work
 ENDOFCONTENT

 This allows to create a ticket automaticlly when i Select 'Oui' on Custom
 Field 'test2', i need also to transmit automaticlly a value of an other
 custom field when i select 'Oui' on Custom Field 'test2', please can you
 tell me how i can do this?

 Thank you,


___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] how to transmit a value of custom field on an other custom field

2009-03-25 Thread Ken Crocker

Hanane,


   Try dropping the semicolon. It's not needed in a template. I insert 
all sorts of Ticket and Custom Field data in my templates and never use 
the semi-colon. Hope this helps.



Kenn
LBNL

On 3/25/2009 5:25 AM, hanane ourdani wrote:
I try to add this test: {$Ticket-FirstCustomFieldValue('Your Custom 
Field Name');} on my template but that doesn't work,


Can you help me please,


2009/3/24 hanane ourdani hanane.ourd...@gmail.com 
mailto:hanane.ourd...@gmail.com


Hi all,

I'm looking for a way to add tickets automatically when a select a
value of a Custom field, I try to do this:


Condition: defined by user
Action: Create tickets
Template: Approved
Stage: TransactionCreate

Condition:   


return undef unless
($self-TicketObj-FirstCustomFieldValue('test2') =~ /Oui/i);
return 1;

Template:

===Create-Ticket: codereview
Subject: Code review for {$Tickets{'TOP'}-Subject}
Depended-On-By: TOP
Queue: Test
Type: approval
Content: Someone has created a ticket. you should review and
approve it, so they can finish their work
ENDOFCONTENT

This allows to create a ticket automaticlly when i Select 'Oui' on
Custom Field 'test2', i need also to transmit automaticlly a value
of an other custom field when i select 'Oui' on Custom Field
'test2', please can you tell me how i can do this?

Thank you,




___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com