Bugzilla:BzAPI:Methods: Difference between revisions

no edit summary
No edit summary
Line 15: Line 15:


  { "bugs": [ <array of [[Bugzilla:REST_API:Objects#Bug|Bug]]> ] }
  { "bugs": [ <array of [[Bugzilla:REST_API:Objects#Bug|Bug]]> ] }


'''Notes'''
'''Notes'''


* Examples: [https://api-dev.bugzilla.mozilla.org/latest/bug?product=Bugzilla&priority=P1&severity=blocker all P1 blockers in the Bugzilla product], [https://api-dev.bugzilla.mozilla.org/latest/bug?changed_after=1h all bugs changed in the last hour].  
* Examples: [https://api-dev.bugzilla.mozilla.org/latest/bug?product=Bugzilla&priority=P1&severity=blocker all P1 blockers in the Bugzilla product], [https://api-dev.bugzilla.mozilla.org/latest/bug?changed_after=1h all bugs changed in the last hour].  
* Only a subset of a bug's fields are returned on a search. These are those in bold on the [[Bugzilla:REST_API:Objects#Bug|list]]. As a rule of thumb, only single-valued fields are returned. As a workaround, you can get full bugs by specifying '''only''' bug IDs as the search criteria (see the documentation for /bug/<id> GET).
* By default, the fields returned are those in bold on the [[Bugzilla:REST_API:Objects#Bug|Search page]]. You can use [[REST API:include_fields|include_fields]] to get more, and if you specify "include_fields=_all", you will get everything. (This may take longer.)


'''Errors'''
'''Errors'''
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits