Bugzilla:BzAPI:Search: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 11: Line 11:
==Text Fields==
==Text Fields==


For the following fields, specify some text to search for along with a '''$FIELDNAME_type''' parameter with a value from the [[Bugzilla::REST_API:Search#Types|list of types]].
For the following fields, specify some text to search for along with a '''$FIELDNAME_type''' parameter with a value from the [[Bugzilla:REST_API:Search#Types|list of types]].


Fields: '''comment, summary, url, whiteboard'''
Fields: '''comment, keywords, summary, url, whiteboard'''


E.g. summary=Flash%20crash&summary_type=contains_all_words
E.g. summary=Flash%20crash&summary_type=contains_all_words
They keywords search will complain if your words are not valid keywords.


==Person Fields==
==Person Fields==


Specify up to two strings, as '''email1''' and '''email2'', and then specify the fields in which to search for those strings (booleans - set to 1 if wanted), and the type of search to do ('''emailN_type''') from the [[Bugzilla::REST_API:Search#Types|list of types]]. You can specify multiple email addresses, comma-separated.
Specify up to two strings, as '''email1''' and '''email2''', and then specify the fields in which to search for those strings (booleans - set to 1 if wanted), and the type of search to do ('''emailN_type''') from the [[Bugzilla:REST_API:Search#Types|list of types]]. You can specify multiple email addresses, comma-separated.


Fields: '''email1, email2, emailN_type, emailN_assigned_to, emailN_qa_contact, emailN_reporter, emailN_cc, emailN_comment_author'''
Fields: '''email1, email2, emailN_type, emailN_assigned_to, emailN_qa_contact, emailN_reporter, emailN_cc, emailN_comment_author'''
Line 25: Line 27:
E.g. email1=fred@example.com,wilma@example.com&email1_type=equals_any&email1_assigned_to=1&email1_qa_contact=1
E.g. email1=fred@example.com,wilma@example.com&email1_type=equals_any&email1_assigned_to=1&email1_qa_contact=1


==Other Fields==
==Bug ID==
 
===Bug ID===


'''id'''=<comma-separated list>, id_type either '''include''' or '''exclude'''. Note that this field does not support aliases.
'''id'''=<comma-separated list>, id_type either '''include''' or '''exclude'''. Note that this field does not support aliases.
Line 33: Line 33:
E.g. id=3,4,5,6&id_type=include
E.g. id=3,4,5,6&id_type=include


===Deadline===
==Deadline==


Specify a range with '''deadline_after''' and '''deadline_before'''. (Note: implementation is actually 'on or before' and 'on or after'; this may change, so be warned).
Specify a range with '''deadline_after''' and '''deadline_before'''. (Note: implementation is actually 'on or before' and 'on or after'; this may change, so be warned).


E.g. deadline_after=2008-08-08&deadline_before=2009-09-09
E.g. deadline_after=2008-08-08&deadline_before=2009-09-09
===Keywords===
Specify one or more '''keywords''', comma-separated, and then a type of search as '''keywords_type''':
Type: '''allwords anywords nowords'''
E.g. keywords=charming,interesting&keywords_type=anywords


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

edits

Navigation menu