<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I’m using RT 4.4.0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found the following problem:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have a custom field “category” with settings “select one value”. There are 5 possible values.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I build a search for all tickets like the following<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Queue = ‘General’ AND Owner = ‘Nobody’ <span style="background:yellow;mso-highlight:yellow">
AND ‘CF.{category}’ != ‘one’</span><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found that the search results ignore the part CF.{category} != ‘one’ and shows all tickets, no matter which category.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tested with CF.{category} <span style="background:yellow;mso-highlight:yellow">
=</span> ‘one’ and this works – it shows all the ticket with category ‘one’<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I used the same search with root-user, and it always works as expected – so I thought this would be a problem with permissions.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My default-user has the following permissions on this queue:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“general rights” </span><span lang="EN-US" style="font-family:Wingdings">à</span><span lang="EN-US"> all<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“Rights for Staff” </span><span lang="EN-US" style="font-family:Wingdings">à</span><span lang="EN-US"> all but “delete tickets” and “forward messages outside of RT”<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">“rights for Administrators” </span><span lang="EN-US" style="font-family:Wingdings">à</span><span lang="EN-US"> no permissions<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My next try was changing the permissions of the custom field.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found out that, as soon as the user has the permission “General rights”
</span><span lang="EN-US" style="font-family:Wingdings">à</span><span lang="EN-US"> “view custom fields” on the “category”-Custom field, the search is working as expected.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So in short:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Search on the CF with = operator works always,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Search on the CF with != operator works only, if the user has “view custom fields” permission on the custom field.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I have a possible solution now, but I would like to understand how this error occurs. Is this a bug or a feature?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Bernhard<o:p></o:p></span></p>
</div>
</body>
</html>