[rt-users] status change when reply on resolved ticket

Maciej Dobrzanski reg.bestpractical at posterus.com
Wed Sep 5 11:42:13 EDT 2012


Asanka,

➢ Hi Have any one written a script to change status (custom field) on requester reply

Off the top of my head you can try the following (I have not tested this, I leave it to you):

1. Custom condition:

return 0 unless $self->TransactionObj->Type eq "Correspond"; 
return 0 unless $self->TicketObj->IsRequestor($self->TransactionObj->Creator);
return 1;

2. Custom action:

my ($success, $msg) = $self->TicketObj->AddCustomFieldValue(Field => 'reply stat', Value => 'Work in progress'); 
if (!$success) {
  $RT::Logger->error($msg);
  return 0;
}
return 1;

Maciek





More information about the rt-users mailing list