Closed tickets stay locked

Moderator: crythias

Locked
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Closed tickets stay locked

Post by aph »

Our agents often close the ticket by replying to a customer and setting the next state to close. However, after the ticket has been closed, it appears in the 'my locked tickets' list. Is there a way to configure OTRS such that the tickets are unlocked when the state is set to closed?
Last edited by aph on 05 May 2015, 15:45, edited 2 times in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Closed tickets stay locked

Post by jojo »

normally this should heppen automatically. Please check the logs. Did you at any changes on the code?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

No changes to the code were made. The only thing different as such is that we have the next state field in a process ticket, which is often set to 'closed' when closing the ticket. But that doesn't account for tickets staying locked when closed with an e-mail. Logs also don't show any relevant entries.

I plan to bypass the problem by running a generic agent which is executed on state update. I filter for state=closed and ticket action is Set new ticket lock=unlock. Are there any pitfalls in this solution?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

On testing the e-mail reply scenario, I could not reproduce the problem mentioned by the agent. Ticket is set to unlocked when I reply to a customer and set the state to closed. However, the problem does occur, if the state is set to closed via the activity dialog in process ticket (the ticket stays locked). Any idea why this behaviour?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Closed tickets stay locked

Post by jojo »

check history of the affected tickets
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

I opened a ticket (state open), locked it and set the state to 'closed' in an activity dialog. The ticket remains locked.

The history has the following entries:

Code: Select all

NewTicket: New Ticket ......
Lock: ticket locked
Misc: Reset of unlock time. 
StateUpdate: Old:Open New:Closed
Last edited by aph on 17 Jun 2015, 15:37, edited 1 time in total.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Closed tickets stay locked

Post by jojo »

of the ones which stay locked but closed.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

These are precisely from such a ticket.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
wurzel
Znuny guru
Posts: 3274
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Closed tickets stay locked

Post by wurzel »

Hi,

ist it a process ticket? Then you may be unlock it via TransitionAction.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

Yes it is a process ticket and has only one activity dialog and no transitions.

The idea here was to have 'general' fields (queue, type etc) on the ticket creation mask. Depending on the queue, a 'process' is started and the activity dialog contains fields specific to that queue and hence no transitions.

I'm currently bypassing the problem by running a generic agent which is executed on state update and if state==closed (filter) the ticket is unlocked (action). I wonder if there is a 'cleaner' solution.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: Closed tickets stay locked

Post by aph »

any ideas if there is a solution where I don't have to use generic agent?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked