[rt-users] Custom Field Template

Kobus Bensch kobus.bensch at trustpayglobal.com
Thu Oct 15 12:19:11 EDT 2015


Hi

I have written a script that looks like this:

Desc: On Change of CF
Cond: User Defined
Action: Notify AdminCCs
Template: CR Change Admin Correspond

Custom Condition: return 0 unless $self->TransactionObj->Type eq 
'CustomField';
                                   return 1;


The Template Looks like this:
Name: CR Change Admin Correspondence
Desc: Plain text admin correspondence template when CF is changed
Type: Perl
Content: RT-Attach-Message: yes

<URL: {RT->Config->Get('WebURL')}Ticket/Display.html?id={$Ticket->id} >

The CR_Owner was changed to: {$Ticket->FirstCustomFieldValue('CR_Owner')}

{$Transaction->Content()}


How can I change this to say:

If field 1 has changed {$Ticket->FirstCustomFieldValue('CR_Owner')}
If Field 2 has changed {$Ticket->FirstCustomFieldValue('CR_Date')}

Etc...

Basically want to onlist the fields in an email if they have changed.

Thanks in advance

Kobus

-- 


Trustpay Global Limited is an authorised Electronic Money Institution 
regulated by the Financial Conduct Authority registration number 900043. 
Company No 07427913 Registered in England and Wales with registered address 
130 Wood Street, London, EC2V 6DL, United Kingdom.

For further details please visit our website at www.trustpayglobal.com.

The information in this email and any attachments are confidential and 
remain the property of Trustpay Global Ltd unless agreed by contract. It is 
intended solely for the person to whom or the entity to which it is 
addressed. If you are not the intended recipient you may not use, disclose, 
copy, distribute, print or rely on the content of this email or its 
attachments. If this email has been received by you in error please advise 
the sender and delete the email from your system. Trustpay Global Ltd does 
not accept any liability for any personal view expressed in this message.



More information about the rt-users mailing list