changing responsible when state changed

Moderator: crythias

Locked
kobi
Znuny newbie
Posts: 15
Joined: 04 Oct 2011, 13:59
Znuny Version: 3.0.10
Real Name: Kobi

changing responsible when state changed

Post by kobi »

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.
kobi
Znuny newbie
Posts: 15
Joined: 04 Oct 2011, 13:59
Znuny Version: 3.0.10
Real Name: Kobi

Re: changing responsible when state changed

Post by kobi »

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.
Locked