865
edits
(→API) |
(→API) |
||
| Line 39: | Line 39: | ||
example: | example: | ||
<pre>bugzillaRPC.getBug([8117, 2344], function(bugs) {alert(bugs[0].summary);}, function(errMsg) {alert(errMsg)});</pre> | <pre>bugzillaRPC.getBug([8117, 2344], function(bugs) {alert(bugs[0].summary);}, function(errMsg) {alert(errMsg)});</pre> | ||
=== advancedSearch === | |||
Retrieves an array of bug objects based on advanced search parameters. | |||
parameters: | |||
* params - a hash of parameters for the buglist query - same parameters as are passed as GET parameters to buglist.cgi. | |||
* callback | |||
* errback | |||
success parameter: | |||
* bugs - An array of objects defined by Bugzilla XML-RPC's [http://www.bugzilla.org/docs/3.0/html/api/Bugzilla/WebService/Bug.html#Utility_Functions getBugs return value]. with properties <tt>id</tt>, <tt>summary</tt>, <tt>creation_time</tt>, <tt>last_change_time</tt>, and the <tt>internals</tt> object which has various other properties. | |||
example: | |||
<pre>bugzillaRPC.getBug({ short_desc_type: 'allwordssubstr', | |||
short_desc: 'window+should+close', | |||
component: 'general'}, | |||
function(bugs) {alert(bugs[0].summary); | |||
function(errMsg) {alert(errMsg)});</pre> | |||
edits