[rt-users] User defined On Correspond condition

Kevin Falcone falcone at bestpractical.com
Tue Mar 9 13:37:47 EST 2010


On Tue, Mar 09, 2010 at 11:40:58AM -0500, Jeremy Winder wrote:
> I have the requirement of not sending the normal 'On Correspond Notify
> Requestors and Ccs' as it causes email loops between RT and another
> ticket system. However, I still need to send the rejection notifications
> that would normally be sent by the default ___approval queue scrips.

Would it be better to just stop RT from sending this system email?
Find the user and set their Name to be the system's email address and
their email address to be blank and RT will never email them.

> My thought was to have a user defined condition that essentially says,
> 'On Correspond and status changing to rejected'; however, I've been
> unable to figure out how to do this. 
> 
> I tried this, but it didn't give me the approver or the notes:
> 
> Condition:
> my $trans = $self->TransactionObj;
> 
> return ($trans->Type eq "Status" &&
>         $trans->NewValue eq "rejected");

You're triggering on the status change, and $Approval and $Notes are
special variables set by the Approval rules (you don't say what
version of RT you're running so I can't even tell what this would do)

-kevin

> Action:
> Notify Requestors and Ccs
> 
> Template:
> Subject: Ticket Rejected: {$Ticket->Subject}
> 
> Greetings,
> 
> Your ticket has been rejected by { eval { $Approval->OwnerObj->Name } }.
> 
> Approver's notes: { $Notes }
> 
> 
> 
> Any help will be greatly appreciated.
> 
> Thanks in advance,
> 
> Jeremy
> 
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> 
> 2010 RT Training Sessions!
> San Francisco, CA, USA - Feb 22 & 23
> Dublin, Ireland - Mar 15 & 16
> Boston, MA, USA - April 5 & 6
> Washington DC, USA - Oct 25 & 26
> 
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20100309/c1a65493/attachment.sig>


More information about the rt-users mailing list