[rt-users] Scrip condition input request

Mathew Snyder theillien at yahoo.com
Tue Dec 4 08:59:11 EST 2007


I haven't been able to sort this out.  When I move a ticket from our triage
queue to our TechOps queue it is still reset to new.  Anyone have any thoughts
on how to get this working?

Condition: On Queue Change
Action: User Defined
Template: Global template: Blank
Stage: TransactionCreate

Custom condition:

Custom action preparation code:
return 1;

Custom action cleanup code:
if ($self->TransactionObj->Type eq "Set" && $self->TransactionObj->Field eq
"Queue") {
  if ($self->TransactionObj->NewValue eq "TechOps" || $self->TicketObj->Owner !=
10) {
    return 0;
  }else{
    $self->TicketObj->SetStatus('new');
    return 1;
  }
}


Keep up with me and what I'm up to: http://theillien.blogspot.com



More information about the rt-users mailing list