Bugzilla:BzAPI:Search: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 3: Line 3:
==Single Value, Multiplicable==
==Single Value, Multiplicable==


Specify any number of individual discrete values as separate URL parameters with identical keys.
For the following fields, specify any number of individual discrete values as separate URL parameters with identical keys.


Fields: '''classification, component, op_sys, platform, priority, product, resolution, severity, status, target_milestone, version'''
Fields: '''classification, component, op_sys, platform, priority, product, resolution, severity, status, target_milestone, version'''
Line 11: Line 11:
==Text Fields==
==Text Fields==


Specify some text to search for in the following fields along with a '''$FIELDNAME_type''' parameter holding one of the given values, to define the type of search.
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, summary, url, whiteboard'''


Types: '''allwordssubstr, anywordssubstr, substring, casesubstring, allwords, anywords, regexp, notregexp'''
E.g. summary=Flash%20crash&summary_type=contains_all_words
 
E.g. summary=Flash%20crash&summary_type=allwords


==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'').
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'''


Types: '''substring, exact, notequals, regexp, notregexp'''
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&email1_type=exact&email1_assigned_to=1&email1_qa_contact=1


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

edits