ticket search

Moderator: crythias

Locked
rvaldomir
Znuny expert
Posts: 155
Joined: 04 Aug 2014, 23:59
Znuny Version: 3.3.8
Real Name: Roberto A. Valdomir

ticket search

Post by rvaldomir »

Hi,

I want to show ticket in a widget that matches with some conditions, example no service, no ticket type or no dynamic field is filled.
a.png
now I can use the ticketSearch but does not provide the negative to search.

It is possible to use a sql query?

my %TicketSearchSummary = (
"Uncategorized Tickets"=> {
OwnerIDs => [ $Self->{UserID}, ],
Locks => undef,
StateType => [ 'new', 'open', 'pending reminder', 'pending auto' ],
# SQL HERE TO FILTER SOME OTHER CONDITION

},
);
You do not have the required permissions to view the files attached to this post.
​Roberto A. Valdomir
Mobile: (+598) 93 868 147 | Skype: roberto.a.valdomir
@roberto.valdomir | re.vu/robertovaldomir

----------------------------------------------------------------------------------------
OTRS 3.3.8 | RHEL 6 x64 | Oracle 11g | Custom Development by OTRS365
Locked