On Mon, Oct 20, 2008 at 23:38, Kenneth Crocker <[EMAIL PROTECTED]> wrote:
>I even have some compound conditions in code. I find this MUCh easier
> to maintain than fooling around in the directories. Just a thought.
I will play with that tomorrow. Thanks :)
Richard
__
Richard,
I use something like this to test a CF Value:
my $trans = $self->TransactionObj;
my $ticket = $self->TicketObj;
if ($trans->Type eq 'CustomField')
{my $cf = new RT::CustomField($RT::SystemUser);
$cf->LoadByName(Queue => $ticket->QueueObj->id,
Name => "Q
On Mon, Oct 20, 2008 at 21:50, Kenneth Crocker <[EMAIL PROTECTED]> wrote:
>I'm not sure I understand WHY you are creating new conditions.
Because I need to test on the status of CF.{zabbix_event_status}
> If you
> are trying to create your own scrips for non-default situations, I would
Richard,
I'm not sure I understand WHY you are creating new conditions. If you
are trying to create your own scrips for non-default situations, I would
recommend setting the Condition to "User-defined" and coding the correct
perl for that condition. I do not understand why you would wa
Hi all,
I have created a lib/RT/Condition/ZabbixEventStatusChange.pm which
contains the following (pruned down to the relevant part):
sub IsApplicable {
my $self = shift;
if ($self->TransactionObj->Field =~ /zabbix_event_status/) {
return(1);
}
else {
return(undef);
}