[rt-users] Scrip Condition for ChangedKeywords does not work
Katja Gutsche-Unrast
katja at biomax.de
Thu Nov 21 12:09:45 EST 2002
Hello, RT-users,
I have copied and modified an RT Condition - but it does not work.
We want to set the condition "if the keyword has been changed to the
value 'in qa' ".
Can anyone help me on that?
Thanx a lot,
katja
-----------------------------
# KeywordChange.pm
# orig: $Header: /raid/cvsroot/rt/lib/RT/Condition/StatusChange.pm,v 1.2
2001/11/06 23:04:18 jesse Exp $
# orig: Copyright 1996-2001 Jesse Vincent <jesse at fsck.com>
# orig: Released under the terms of the GNU General Public License
# copied from StatusChange ! (katja, Nov21, 2002)
package RT::Condition::StatusChange;
require RT::Condition::Generic;
@ISA = qw(RT::Condition::Generic);
=head2 IsApplicable
If the argument passed in is equivalent to the new value of
the Status Obj
=cut
sub IsApplicable {
my $self = shift;
if (($self->TransactionObj->Field eq 'Keywords') and
(($self->TransactionObj->NewValue()) eq 'in qa')) {
return(1);
}
else {
return(undef);
}
}
1;
More information about the rt-users
mailing list