Hi,
i'am trying to make the otrs to change the responsible when the state of the ticket is changed to other state.
example: state changed from open to Escalated > responsible is agent "x".
anybody have a quick way to do it ?
Thanks.
changing responsible when state changed
Moderator: crythias
Re: changing responsible when state changed
Ok, the solution is:
the file ResponsibleAutoSet.pm was edit in line 58 and the following "if" was added -
if ($Ticket{ StateID } == 15) {
$Self->{TicketObject}->TicketResponsibleSet(
TicketID => $Param{Data}->{TicketID},
NewUserID => 5, #user name
SendNoNotification => 1,
UserID => $Param{UserID},
);
}
when 15 is escalated ID and 5 is the user ID.
also in sysconfig:: Core::Ticket
Ticket::EventModulePost###140-ResponsibleAutoSet -- the Event changed from TicketOwnerUpdate to TicketStateUpdate
and it works perfect when the state is changed to escalated the right responsible also changed.
the file ResponsibleAutoSet.pm was edit in line 58 and the following "if" was added -
if ($Ticket{ StateID } == 15) {
$Self->{TicketObject}->TicketResponsibleSet(
TicketID => $Param{Data}->{TicketID},
NewUserID => 5, #user name
SendNoNotification => 1,
UserID => $Param{UserID},
);
}
when 15 is escalated ID and 5 is the user ID.
also in sysconfig:: Core::Ticket
Ticket::EventModulePost###140-ResponsibleAutoSet -- the Event changed from TicketOwnerUpdate to TicketStateUpdate
and it works perfect when the state is changed to escalated the right responsible also changed.