[python-bugzilla] Search for customer facing question
Simon Green
sgreen at redhat.com
Mon May 13 21:03:24 UTC 2013
On 14/05/13 02:14, Eric Sammons wrote:
> Hello,
>
> I'm trying to implement a search for customer facing is yes. Not seeing
> a flag for this option I have decided to try boolean_query; however, it
> seems my results are the opposite of what I would have expected.
> Perhaps I have the wrong "field" or I am making some bad assumptions here.
>
> My current query:
>
> bugzilla query -p "Red Hat Enterprise MRG" -t
> "NEW,ASSIGNED,ON_DEV,POST,MODIFIED,ON_QA"
> --boolean_query="cf_cust_facing.notsubstring-yes &
> flagtypes.name-substring-mrg-2.4.0 &
> flagtypes.name-notsubstring-mrg-2.4.0-" -z "low,medium"
>
> I assumed that the customer facing field was cf_customer_facing based on
> the cgi in page source.
That is correct. You can also get a list of field names by calling the
Bug.fields RPC call.
cf_cust_facing.notsubstring-yes
flagtypes.name-substring-mrg-2.4.0
I notice in the first statement, you have a full stop between the field
and the type. In the second statement you use a hyphen. Could that be
the problem?
--
Regards,
Simon Green
Software Engineer
Red Hat Asia Pacific Pty Ltd
More information about the python-bugzilla
mailing list