[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-users
Subject: Re: [rt-users] Numeric custom field values
From: "Parish, Brent" <bparish () cognex ! com>
Date: 2014-01-31 21:00:24
Message-ID: 6265B2EB12D194469B958F2E703D81830DE30B5B42 () viper ! pc ! cognex ! com
[Download RAW message or body]
Sorry I forgot to add -
I'm not sure if the versions will make any difference in regards to this question, \
but I'm running RT 4.2.2 on Ubuntu 13.10 with MySQL 5.5.34 and Sphinx 2.1.3
Thanks,
Brent
From: rt-users-bounces@lists.bestpractical.com \
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of \
Parish, Brent
Sent: Friday, January 31, 2014 2:52 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Numeric custom field values
Hi.
I have some custom fields to track numeric priority independent of the built-in \
priority field.
This is an example of a search string I use: Queue = 'helpdesk' AND 'CF.{Helpdesk \
Priority}' > 15 But this returns tickets where CF.{Helpdesk Priority} is set to 2
That leads me to believe that the operation being preformed is a string comparison \
(where 2 is indeed greater than 15), versus a numeric one.
So my question is: is there a proper syntax to use in the search builder to treat \
those custom field values as numeric?
Thanks!
Brent
[Attachment #3 (text/html)]
<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:x="urn:schemas-microsoft-com:office:excel" \
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" \
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=us-ascii"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Sorry I forgot to \
add – <o:p></o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'>I’m not sure if the versions will make any difference in \
regards to this question, but I’m running RT 4.2.2 on Ubuntu 13.10 with MySQL \
5.5.34 and Sphinx 2.1.3<o:p></o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'>Brent<o:p></o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span \
style='color:#1F497D'><o:p> </o:p></span></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p \
class=MsoNormal style='margin-left:.5in'><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> \
rt-users-bounces@lists.bestpractical.com \
[mailto:rt-users-bounces@lists.bestpractical.com] <b>On Behalf Of </b>Parish, \
Brent<br><b>Sent:</b> Friday, January 31, 2014 2:52 PM<br><b>To:</b> \
rt-users@lists.bestpractical.com<br><b>Subject:</b> [rt-users] Numeric custom field \
values<o:p></o:p></span></p></div></div><p class=MsoNormal \
style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal \
style='margin-left:.5in'>Hi.<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal \
style='margin-left:.5in'>I have some custom fields to track numeric priority \
independent of the built-in priority field.<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal \
style='margin-left:.5in'>This is an example of a search string I use: Queue = \
'helpdesk' AND 'CF.{Helpdesk Priority}' > 15<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'>But this returns tickets where CF.{Helpdesk Priority} is set \
to 2<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>That leads me to \
believe that the operation being preformed is a string comparison (where 2 is indeed \
greater than 15), versus a numeric one.<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal \
style='margin-left:.5in'>So my question is: is there a proper syntax to use in \
the search builder to treat those custom field values as numeric?<o:p></o:p></p><p \
class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal \
style='margin-left:.5in'>Thanks!<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'>Brent<o:p></o:p></p><p class=MsoNormal \
style='margin-left:.5in'><o:p> </o:p></p></div></body></html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic