OTRS - Tweaking Queue View to see locked tickets also
Step by step:
- Access SysConfig -> Ticket -> Core::Ticket
- Add a new value on Ticket::ViewableLocks parameter. This value must be 'lock'
- Make a copy of /opt/otrs/Kernel/Modules/AgentTicketQueue.pm to /opt/otrs/Custom/Kernel/Modules/AgentTicketQueue.pm (you will need probably to create the folders Kernel and Modules inside Custom folder)
- Open the file /opt/otrs/Custom/Kernel/Modules/AgentTicketQueue.pm on your prefered editor and change the code bellow:
my %Filters = (
All => {
Name => 'All tickets',
Prio => 1000,
Search => {
StateIDs => \@ViewableStateIDs,
QueueIDs => \@ViewableQueueIDs,
%Sort,
Permission => $Permission,
UserID => $Self->{UserID},
},
},
Unlocked => {
Name => 'Available tickets',
Prio => 1001,
Search => {
LockIDs => \@ViewableLockIDs,
StateIDs => \@ViewableStateIDs,
QueueIDs => \@ViewableQueueIDs,
%Sort,
Permission => $Permission,
UserID => $Self->{UserID},
},
},
);
to
my @LockedIDs = (1,3);
my %Filters = (
All => {
Name => 'All tickets',
Prio => 1000,
Search => {
StateIDs => \@ViewableStateIDs,
QueueIDs => \@ViewableQueueIDs,
%Sort,
Permission => $Permission,
UserID => $Self->{UserID},
},
},
Unlocked => {
Name => 'Available tickets',
Prio => 1001,
Search => {
LockIDs => \@LockedIDs,
StateIDs => \@ViewableStateIDs,
QueueIDs => \@ViewableQueueIDs,
%Sort,
Permission => $Permission,
UserID => $Self->{UserID},
},
},
);
Maybe it would be necessary to run otrs.DeleteCache.pl to see the changes.