Hello,
I want RT to change ticket status from New to Open once I click on the Take action. I am trying to create a custom script for this
Description: On Take Change Status to Open
Condition: On Transaction
Action: User Defined
Template: Blank
Custom condition:
Custom action preparation code: 1;
Custom action commit code:
if ($self->TransactionObj->Type eq “Take” and
$self->TicketObj->Status eq “New”) {
$self->TicketObj->SetStatus(“Open”);
}
1;
But this does not seem to be working. Can you please guide me on what i might be doing wrong?
Thanks,
Deepak