How to unlock all tickets using crontab

Moderator: crythias

Post Reply
wiegandr
Znuny newbie
Posts: 32
Joined: 23 Jun 2016, 08:55
Znuny Version: OTRS5
Real Name: Ralf Wiegand
Company: TML Technologies

How to unlock all tickets using crontab

Post by wiegandr »

Hello group - in an older version we had a script "otrs.UnlockTickets.pl" to unlock all tickets. In version 5.x how can I unlock all tickets?
Thank You

Ralf Wiegand
wiegandr
Znuny newbie
Posts: 32
Joined: 23 Jun 2016, 08:55
Znuny Version: OTRS5
Real Name: Ralf Wiegand
Company: TML Technologies

Re: How to unlock all tickets using crontab

Post by wiegandr »

Maint::Ticket::UnlockAll - Unlock all tickets by force.


It looks like this would be an option. I am not sure if this is the correct way to do this. What would be the correct syntax?

Thx, Ralf
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: How to unlock all tickets using crontab

Post by jojo »

did you try:

Code: Select all

bin/otrs.Console.pl Maint::Ticket::UnlockAll  --help


;-)

But as the lock functionality is by design it is not a good idea to unlock all tickets automatically...
"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
Post Reply