On Thu, Oct 15, 2015 at 11:19 AM, Kobus Bensch <kobus.ben...@trustpayglobal.com> wrote: > 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')}
The $Transaction data should have what you need to make a logic choice in your template. -m