[rt-users] RT send 2 mail notification for setting the ticket owner

Rabin Yasharzadehe rabin at isoc.org.il
Thu May 14 02:46:21 EDT 2015


On Tue, May 12, 2015 at 8:06 PM, Bill Cole <
rtusers-20090205 at billmail.scconsult.com> wrote:

> Based on what you posted, I would expect there to be 2 different scrips,
> one for each message. Your solution will probably involve selecting one of
> them to keep and disabling the other.
>
>  but it is not familiar
>> to me,
>> the condition is "User defined" but i can't understand the Perl code,
>>
>> can you help please ?
>>
>> ----
>> my $txn = $self->TransactionObj;
>> return 0 unless $txn->Field eq "Owner";
>> return 0 if $txn->NewValue == $txn->Creator;
>> return 1;
>> ----
>>
>
> That means the scrip action (sending an email notification using the
> selected template) will trigger only on transactions that (1) change the
> ticket's "Owner" field and (2) set the new value of "Owner" to a value that
> is not equal to the "Creator" field of the transaction. In other words: the
> scrip triggers when a user gives a ticket to someone else.
>

​Thank you :)
​​

--
Rabin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20150514/cb61df16/attachment.htm>


More information about the rt-users mailing list