[Rt-commit] rt branch, 4.4/update-qb-null-search-details, created. rt-4.4.2-87-g36d2e9bab

Maureen Mirville maureen at bestpractical.com
Tue Mar 6 10:41:00 EST 2018


The branch, 4.4/update-qb-null-search-details has been created
        at  36d2e9bab3c4ca09a31f1e2b7b040403637024bf (commit)

- Log -----------------------------------------------------------------
commit 36d2e9bab3c4ca09a31f1e2b7b040403637024bf
Author: Maureen E. Mirville <maureen at bestpractical.com>
Date:   Wed Feb 14 11:04:04 2018 -0500

    Update query builder docs to explain NOT NULL in CF searches

diff --git a/docs/query_builder.pod b/docs/query_builder.pod
index c84b40e60..cf8fcb6d2 100644
--- a/docs/query_builder.pod
+++ b/docs/query_builder.pod
@@ -131,6 +131,15 @@ The same pieces of information are now spread across the display next to one
 another, which can be harder to read. So when you tell RT to display a lot of
 columns, it's usually worth adding a well-placed NEWLINE.
 
+Let's say, for example, you have a custom field named 'TransportType' that takes
+the values, 'Car', 'Bus' or 'Train'. If you were to search for all tickets that
+do not have 'TransportType' set to 'Car', this would result in a list of tickets
+with 'TransportType' values of 'Bus', 'Train', and '(no value)'. In order to ensure
+that custom fields with no set value are not included in the your search results,
+add the following to your query:
+
+AND CF.{'TransportType'} IS NOT NULL
+
 And there are the basics of the query builder! To implement these basics to
 build reports, please see the Dashboard & Reports document. For definitions of
 piece of RT metadata, please see the Definitions of Ticket Metadata document.

-----------------------------------------------------------------------


More information about the rt-commit mailing list