[SOLVED] Ticket should not get unlocked

Moderator: crythias

Locked
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

[SOLVED] Ticket should not get unlocked

Post by zip »

Hello

i have this situation:

Agent A is sending a email to otrs to create a ticket for Agent B. The ticket is auto assigned and locked via postmaster filters. Agent A sets the service and other two dynamic fields in the ticket overview. A generic agent is moving the ticket from Queue "Controlling" to "Controlling::Cubeware" because of setting the service to "Cubeware". Then all agent of this queue are getting the Move-Notification and the tickets is getting unlocked. Why is the ticket get unlocked and because of this (i guess) all agents of the group are getting the notifications? Its everytime a agent is moving a ticket to another queue that the ticket is getting unlocked, and if yes, how can i disable that?
otrs_history.jpg
thanks
You do not have the required permissions to view the files attached to this post.
Last edited by zip on 13 May 2014, 15:33, edited 3 times in total.
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket should not get unlocked

Post by crythias »

Turn off unlock on move in SysConfig.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Ticket should not get unlocked

Post by zip »

thanks a lot!
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: [SOLVED] Ticket should not get unlocked

Post by crythias »

BTW, if anyone wonders why it's enabled by default, it's because sometimes (usually?) the queues have specific agents. A locked ticket by an agent not a member of a queue's group makes that ticket problematic.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Ticket should not get unlocked

Post by zip »

Now the ticket stay locked, but when i move a locked ticket from queue A to queue B, all agents of queue B are getting the move-notification. They should only get the notifications if the ticket is unlocked. Can i set this in sysconfig or do i have to make customized notifications?
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Ticket should not get unlocked

Post by crythias »

According to Kernel/Modules/AgentTicketMove:

Code: Select all

    # move ticket (send notification if no new owner is selected)
    my $BodyAsText = '';
    if ( $Self->{LayoutObject}->{BrowserRichText} ) {
        $BodyAsText = $Self->{LayoutObject}->RichText2Ascii(
            String => $GetParam{Body} || 0,
        );
    }
    else {
        $BodyAsText = $GetParam{Body} || 0;
    }
    my $Move = $Self->{TicketObject}->TicketQueueSet(
        QueueID            => $GetParam{DestQueueID},
        UserID             => $Self->{UserID},
        TicketID           => $Self->{TicketID},
        SendNoNotification => $GetParam{NewUserID},
        Comment            => $BodyAsText,
    );
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
zip
Znuny advanced
Posts: 103
Joined: 02 Jan 2014, 12:32
Znuny Version: 5.0.9

Re: Ticket should not get unlocked

Post by zip »

ok thanks
OTRS 5.0.9 - CentOS 7 - MariaDB 5.5
Locked