How to disable ticket lock?

Moderator: crythias

Locked
peter_sk
Znuny newbie
Posts: 53
Joined: 10 Jun 2010, 09:27
Znuny Version: 2.4.7

How to disable ticket lock?

Post by peter_sk »

Hi!

OTRS automatically locks the ticket, when you change the owner. It locks it to new owner. Is there a way, to disable this feature?
Or maybe, how to set up the system, so that also locked tickets are shown in queue view? I know you can do this with Search function, but I'd like to display all the open tickets in the selected queue, locked and unlocked by default. BTW, I don't use responsible function...

Thanks!
OTRS 2.4.7 with ITSM 2.0.3. running on Linux Fedora 12
peter_sk
Znuny newbie
Posts: 53
Joined: 10 Jun 2010, 09:27
Znuny Version: 2.4.7

Re: How to disable ticket lock?

Post by peter_sk »

If somebody else is looking for this solution. There is a setting in Sysconfig, under Ticket -> Core::Ticket. Just add a 'lock' value under Ticket::ViewableLocks, and everyone can see all the tickets in queue view, of course for the queue with permissions...

Image
OTRS 2.4.7 with ITSM 2.0.3. running on Linux Fedora 12
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to disable ticket lock?

Post by crythias »

You can choose "Locked Tickets" in dashboard, btw.
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
asima
Znuny newbie
Posts: 15
Joined: 02 Aug 2010, 14:11
Znuny Version: 3.0.11

Re: How to disable ticket lock?

Post by asima »

Hi

Even if you can see the tickets that are locked, is there a way so that it doesn't lock the ticket when you change the owner. The reason why I need this is because unfortunatelly sometimes we forget that we need to add note/ change queue first before changing the owner of the ticket. So after we submit the change of ownership then we are stuck.

If there isn't away to disable lock feature, is there a script that we can run to unlock all tickets?

Thank you
OTRS 3.0.4 on Linux with MySQL database connected to an Active Directory for Agents
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to disable ticket lock?

Post by crythias »

You can add a note to a locked ticket.

Config Options: Ticket -> Core::Ticket
Moving a ticket between queues unlocks them: (default enabled)
Ticket::EventModulePost###99-ForceUnlockOnMove:
Ticket event module to force tickets to be unlocked after moving to another queue.

Ticket::UnlockStateType:
The states for unlocked tickets. You can unlock tickets with the script "bin/UnlockTickets.pl"

There's also this: (default disabled)
Ticket::EventModulePost###1-ForceOwnerResetOnMove:
Ticket event module to reset and unlock the owner if ticket gets moved to another queue.
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
asima
Znuny newbie
Posts: 15
Joined: 02 Aug 2010, 14:11
Znuny Version: 3.0.11

Re: How to disable ticket lock?

Post by asima »

Thank you crythias

I've set so that the bin/UnlockTickets.pl script running more regularly now. That seems to solve our issue.
OTRS 3.0.4 on Linux with MySQL database connected to an Active Directory for Agents
felix
Znuny newbie
Posts: 30
Joined: 30 Nov 2010, 15:27
Znuny Version: 2.4.9

Re: How to disable ticket lock?

Post by felix »

peter_sk wrote:If somebody else is looking for this solution. There is a setting in Sysconfig, under Ticket -> Core::Ticket. Just add a 'lock' value under Ticket::ViewableLocks, and everyone can see all the tickets in queue view, of course for the queue with permissions...

Image
Thanks for the tip, however when trying this, I don't get the expected result in tickets -> queueview. I am not able to see the all tickets by queue. Any idea why i can't cope with that?
SLESSARD
Znuny advanced
Posts: 119
Joined: 12 Jan 2011, 22:35
Znuny Version: 4.x.x.x.x
Company: Self-Employed

Re: How to disable ticket lock?

Post by SLESSARD »

I am having the same situation where I'd like to disable the Ticket Lock feature completely (even remove the link Lock - Unlock)

Q1 - Is the only option to run bin/UnlockTickets.pl regularly?
Q2 - If so what the best way / how to schedule the execution of the .pl file?
Q3 - If there is another way to completely disable the feature and remove the links, how?

Thanks,
OTRS 4.0.11
Ubuntu 15.04
MySQL Database, PHP5, Apache (LAMP server bundle)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to disable ticket lock?

Post by crythias »

I suppose another option would be to adjust for each queue:
Unlock timeout minutes: 1

0 = no unlock - 24 hours = 1440 minutes - Only business hours are counted.
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
SLESSARD
Znuny advanced
Posts: 119
Joined: 12 Jan 2011, 22:35
Znuny Version: 4.x.x.x.x
Company: Self-Employed

Re: How to disable ticket lock?

Post by SLESSARD »

Oh! Easy enough ... thanks a lot :lol:
OTRS 4.0.11
Ubuntu 15.04
MySQL Database, PHP5, Apache (LAMP server bundle)
grgelisha
Znuny newbie
Posts: 27
Joined: 05 Jul 2011, 14:57
Znuny Version: 2.4.9
Real Name: George Elisha
Company: QLogy Management Services Pvt Ltd

Re: How to disable ticket lock?

Post by grgelisha »

peter_sk wrote:If somebody else is looking for this solution. There is a setting in Sysconfig, under Ticket -> Core::Ticket. Just add a 'lock' value under Ticket::ViewableLocks, and everyone can see all the tickets in queue view, of course for the queue with permissions...

Image
In this Case, I See Locked Tikets Count (we have Locked tickets) and Message Count being Nullified..
How to ensure both of these display their counts??
Thanks in Advance
vinnie2k
Znuny newbie
Posts: 20
Joined: 29 Mar 2011, 13:55
Znuny Version: 2.4.7

Re: How to disable ticket lock?

Post by vinnie2k »

crythias wrote:You can choose "Locked Tickets" in dashboard, btw.
How does the "Filter" option work, besides setting it to "All"? I tried

'Filter' => 'Locked' (as indicated in the Admin manual) but my unlocked ticket still appear in the dashboard.

Ticket::ViewableLocks: only has unlock and tmp_lock as options in the sysconfig.
OTRS 2.4.7 RedHat Linux 2.6.18-238.1.1.el5 mySQL 5.0.77
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: How to disable ticket lock?

Post by HervE »

Hello,

I disabled ticket locks from the start. Everywhere. So that tickets always remain unlocked.

What I did to achieve that:

1. For all queues, "Ticket lock after a follow up" = No

2. In SysConfig:
« Ticket -> Frontend::Agent::Ticket::ViewPriority », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewClose », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewOwner », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewPending », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewCompose », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewForward », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewBounce », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewMerge », attribute ‘RequiredLock’ = No
« Ticket -> Frontend::Agent::Ticket::ViewPhoneOutbound », attribute ‘RequiredLock’ = No

Hope it helps.

Regards,
Hervé
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
vinnie2k
Znuny newbie
Posts: 20
Joined: 29 Mar 2011, 13:55
Znuny Version: 2.4.7

Re: How to disable ticket lock?

Post by vinnie2k »

I need ticket locks. I just don't want them to appear in the dashboard.
OTRS 2.4.7 RedHat Linux 2.6.18-238.1.1.el5 mySQL 5.0.77
grgelisha
Znuny newbie
Posts: 27
Joined: 05 Jul 2011, 14:57
Znuny Version: 2.4.9
Real Name: George Elisha
Company: QLogy Management Services Pvt Ltd

Re: How to disable ticket lock?

Post by grgelisha »

I find this useful and related to this post
http://otrs-treff.de/en/otrs-show-locke ... queue-view
ilyatr
Znuny newbie
Posts: 1
Joined: 02 Nov 2011, 12:51
Znuny Version: 3.0.10
Real Name: Ilya
Location: Russia

Re: How to disable ticket lock?

Post by ilyatr »

Hello.
peter_sk wrote:OTRS automatically locks the ticket, when you change the owner. It locks it to new owner. Is there a way, to disable this feature?
I've commented in /opt/otrs/Kernel/Modules/AgentTicketActionCommon.pm strings (they start with #)

Code: Select all

        # set new owner
        my @NotifyDone;
        if ( $Self->{Config}->{Owner} ) {
            my $BodyText = $Self->{LayoutObject}->RichText2Ascii(
                String => $GetParam{Body} || '',
            );
            if ( $GetParam{NewOwnerType} eq 'Old' && $GetParam{OldOwnerID} ) {
#                $Self->{TicketObject}->TicketLockSet(
#                    TicketID => $Self->{TicketID},
#                    Lock     => 'lock',
#                    UserID   => $Self->{UserID},
#                );
                my $Success = $Self->{TicketObject}->TicketOwnerSet(
                    TicketID  => $Self->{TicketID},
                    UserID    => $Self->{UserID},
                    NewUserID => $GetParam{OldOwnerID},
                    Comment   => $BodyText,
                );

                # remember to not notify owner twice
                if ( $Success && $Success eq 1 ) {
                    push @NotifyDone, $GetParam{OldOwnerID};
                }
            }
            elsif ( $GetParam{NewOwnerID} ) {
#                $Self->{TicketObject}->TicketLockSet(
#                    TicketID => $Self->{TicketID},
#                    Lock     => 'lock',
#                    UserID   => $Self->{UserID},
#                );
                my $Success = $Self->{TicketObject}->TicketOwnerSet(
                    TicketID  => $Self->{TicketID},
                    UserID    => $Self->{UserID},
                    NewUserID => $GetParam{NewOwnerID},
                    Comment   => $BodyText,
                );

                # remember to not notify owner twice
                if ( $Success && $Success eq 1 ) {
                    push @NotifyDone, $GetParam{NewOwnerID};
                }
            }
        }
After this you should set necessary options in System Config (see RequiredLock optons) to No
When I change owner the ticket doesn't lock automatically.

BUT!!! I don't know is it true way or have problems in the future

If you test and have problems write this.


P.S. Sorry for my English.
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: How to disable ticket lock?

Post by yuri0001 »

Colleagues!
In my opinion, the refusal of the function "Lock" - is wrong, especially in large companies with multiple agents. It may be that one went out to execute the Ticket, but also her other picks up and starts to execute it also. This of course depends on the organization of work, but I think before you give up a mechanism should be clear about where it leads. :?
And how to turn it off - all right - you're right! :)
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
vinnie2k
Znuny newbie
Posts: 20
Joined: 29 Mar 2011, 13:55
Znuny Version: 2.4.7

Re: How to disable ticket lock?

Post by vinnie2k »

We tried to not work with the lock mechanism - big mistake. It's useful AND trying to get rid of it will breaks other things.
OTRS 2.4.7 RedHat Linux 2.6.18-238.1.1.el5 mySQL 5.0.77
HervE
Znuny wizard
Posts: 391
Joined: 03 Jan 2011, 17:15
Znuny Version: 3.3.8
Location: France

Re: How to disable ticket lock?

Post by HervE »

Hello,

We've been working with OTRS without ticket lock for 7 months now, and we are quite satisfied.

...but we are only 5 agents, all located in the same office.

Regards,
HervE
OTRS 3.3.8 - Windows 7 - IIS7 - SQL Server - Firefox 30
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: How to disable ticket lock?

Post by jcgar »

peter_sk wrote:If somebody else is looking for this solution. There is a setting in Sysconfig, under Ticket -> Core::Ticket. Just add a 'lock' value under Ticket::ViewableLocks, and everyone can see all the tickets in queue view, of course for the queue with permissions...

Image
This working for me in OTRS 4.0, but I just installed OTRS 5.0.10 and not working.

I want to always see "all tickets" and not "available tickets".

¿some help?.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to disable ticket lock?

Post by jojo »

please don't change needed parts in OTRS. You can use the Status View to see all unlocked + locked tickets or the dashboard.
"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
jcgar
Znuny newbie
Posts: 15
Joined: 06 Jun 2016, 10:38
Znuny Version: 4.0.1

Re: How to disable ticket lock?

Post by jcgar »

jojo wrote:please don't change needed parts in OTRS. You can use the Status View to see all unlocked + locked tickets or the dashboard.
Thanks for your answer but I dont know how to do it.

Image

I want to disable QUEUE (X/X) option. Agents need to see all status. In fact, what I want is that when agents do login in OTRS, they have pre-selected the "TIC" queue and see "all Tickets".

can you help me?
Locked