On 17/02/12 18:48, engr wrote:
>>> What would be the date format for the following query to Bugzilla server?
>>> http://hostname:port/buglist.cgi?creation_ts=date&columnlist=all&ctype=csv&Bugzilla_login=xxxxxx&Bugzilla_password=yyyyyy
>>
>> What makes you think such a query is supposed to be in that form? :-)
>>
> Such query is generated by BzAPI for query
>
http://hostname:3000/bug?username=abcdef&password=XXXX&creation_time=2012-02-16%2011%3A16
I've now looked into this. The answer is that yes, BzAPI does generate
queries like the one you give, when you give it a query like the one
directly above... but in fact, the BzAPI documentation gives a different
method of searching for bugs created between two dates:
https://wiki.mozilla.org/Bugzilla:REST_API:Search#Changes
If you use that method, the Bugzilla URLs it generates will be correct.
Granted, it does currently say that you can search on any single-valued
Bug field, except the ones marked as special - and creation_ts is not
completely explicitly marked as special. So I will make the docs more clear.
In general, you should assume that if you can do it with query.cgi, you
can do it with BzAPI, and if you can't, you can't. query.cgi has no
single-field for searching "creation time", so there is no way to do
that in BzAPI either. You can either use Boolean Charts, or the Change
search support.
Gerv