Nicolas, Try this:
# Custom Condition # my $trans = $self->TransactionObj; return ($trans->Type eq "Status" && $trans->NewValue eq "rejected"); Kenn LBNL On 12/11/2009 1:47 AM, Nicolas GUIOT wrote: > Hi everyone, > > I'm upgrading from 3.6.1 to 3.8.6, and having (until now) just a last bug : > > I had a scrip that was doing the following : if a ticket has been rejected, > then email the user so that he knows about it. > > This was made like this : > > Condition : On Status Change > Action : Notify requestor, CCs, and AdminCCs > Template : GlobalTemplate : Reject > Stage : Transaction Create > > Custon Condition : > if ( $Ticket->Status eq "rejected") { return 1; } > return 0; > > So, this works perfectly in the "old" setup (3.6.1). > > But in 3.8.6, every time the status of the ticket changes (open, solved, > closed, etc...), the Requestor receives a "ticket rejected" notice. > > Has anything changed between the 2 versions ? Did I miss something else ? > > Thanks in advance for your help > Nicolas > > _______________________________________________ > 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