Bugzilla:BzAPI:Search: Difference between revisions

Line 37: Line 37:


Specify '''id'''=<comma-separated list>, and an '''id_mode''' of either ''include'' or ''exclude'' (defaults to ''include''). You may instead pass a separate '''id''' parameter for each bug ID if you wish. Note that this field does not support aliases.
Specify '''id'''=<comma-separated list>, and an '''id_mode''' of either ''include'' or ''exclude'' (defaults to ''include''). You may instead pass a separate '''id''' parameter for each bug ID if you wish. Note that this field does not support aliases.
If you specify only IDs as your search criteria, you will get back full [[Bugzilla:REST_API:Objects#Bug|Bug]] objects instead of the limited number of fields normally provided on the search interface. This is a shortcut to allow the retrieval of full bug information for multiple bugs without having to make multiple requests.
E.g. id=3,4,5,6 (full Bug objects returned)<br>
E.g. id=3,4,5,6&id_mode=include&priority=P1 (normal search results returned)


==Deadline==
==Deadline==
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits