User defined conditions

When does RT know when to check the user defined conditions?

To clarify, When you select the condition “On Status Change”, when the status of the ticket changes, the action is performed, (in my example case an increase in priority).

I attempted to perform a user defined condition, where the condition is when the ticket is “not resolved” below is the code I placed in the custom condition box

my $self = shift;
my $ticket = $self->TicketObj;

if($ticket->Status ne ‘resolved’) {
return 1;
} else {
return undef;
}

I leave the custom action the same, (increase the priority).

When will this scrip execute?

-Phil

Your scrip will run everytime an event happens in RT on a
ticket that has the status ‘resolved’. Your problem is that
you need to identify which ‘event(s)’ will trigger your scrip.
Status changes? New Tickets? Ticket comments?

-ToddOn Tue, Jun 29, 2004 at 03:25:13PM -0500, Philip Shon wrote:

When does RT know when to check the user defined conditions?

To clarify, When you select the condition “On Status Change”, when the status of the ticket changes, the action is performed, (in my example case an increase in priority).

I attempted to perform a user defined condition, where the condition is when the ticket is “not resolved” below is the code I placed in the custom condition box

my $self = shift;
my $ticket = $self->TicketObj;

if($ticket->Status ne ‘resolved’) {
return 1;
} else {
return undef;
}

I leave the custom action the same, (increase the priority).

When will this scrip execute?

-Phil


The rt-users Archives

RT Developer and Administrator training is coming to LA, DC and Frankfurt this spring and summer.
http://bestpractical.com/services/training.html

Sign up early, as class space is limited.