[Solved] Search for empty dynamic field?

Moderator: crythias

Locked
Lure79
Znuny newbie
Posts: 11
Joined: 13 Aug 2013, 08:33
Znuny Version: 3.2.9
Real Name: Anderas Larsson
Company: Consid AB

[Solved] Search for empty dynamic field?

Post by Lure79 »

Hello!

We are using OTRS 3.2.9 and have set ut a couple of optional dynamic fields for our tickets. The fields are of type DropDown.

I changed the search view so that you can search using the dynamic fields as attribute, however it seems that you can only search for tickets that has a value selected. There is no "empty", "null" or similar search option.

Is it possible to search for tickets where a non-mandatory drop down dynamic field is NOT set?
I want to find tickets where field X has not been set.

Maybe we need to change or implementation so I create a "-" blank drop down choice that the drop down fields default to and make them all mandatory so they are allways set...
Last edited by Lure79 on 16 Aug 2013, 11:13, edited 1 time in total.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Search for empty dynamic field?

Post by jojo »

if a Dynamic Field is emtpy it is not set, so it is not existing as a value for the ticket.
"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
Lure79
Znuny newbie
Posts: 11
Joined: 13 Aug 2013, 08:33
Znuny Version: 3.2.9
Real Name: Anderas Larsson
Company: Consid AB

Re: Search for empty dynamic field?

Post by Lure79 »

Thank you. We will go for mandatory fields then with "blank" values as the default choice then.
Locked