Bugzilla:BzAPI:Search: Difference between revisions

Jump to navigation Jump to search
Line 61: Line 61:
==Boolean Charts==
==Boolean Charts==


The Bugzilla "boolean charts" mechanism is the way to construct more complex queries, or to search on other fields which do not have their own dedicated parameters (e.g. time tracking fields, attachment fields, flags, groups and related bugs). See Bugzilla's documentation for details of how they work. At the moment, boolean chart parameters are passed through unchanged, apart from translating any [[Bugzilla:REST_API:Objects|new field names]] and new type names into the ones Bugzilla understands natively.
The Bugzilla "boolean charts" mechanism is the way to construct more complex queries, or to search on other fields which do not have their own dedicated parameters (e.g. time tracking fields, attachment fields, flags, history, groups and related bugs). See Bugzilla's documentation for details of how they work. At the moment, boolean chart parameters are passed through unchanged, apart from translating any [[Bugzilla:REST_API:Objects|new field names]] and new type names into the ones Bugzilla understands natively.


The parameters for each triple are '''fieldA-B-C''', '''typeA-B-C''' and '''valueA-B-C''', where A, B and C are integers beginning at 0.  
The parameters for each triple are '''fieldA-B-C''', '''typeA-B-C''' and '''valueA-B-C''', where A, B and C are integers beginning at 0.  
Line 79: Line 79:
Additional field values you can use are:
Additional field values you can use are:


{|
{| border="1"
!name!!description
!Name!!Description
|-
|-
|comment.is_private||Comment privacy
|comment.is_private||Comment privacy
|-
|-
|comment.author||Person adding a comment
|comment.author||Person adding a comment
|-
|content||Full text of bug; use with special 'matches' type
|-
|-
|idle||Time since bug was last changed by anyone, in days
|idle||Time since bug was last changed by anyone, in days
Line 95: Line 97:
|-
|-
|assignee_idle||Time since bug was last changed by assignee; postfix number with h/d/w/m/y to specify units
|assignee_idle||Time since bug was last changed by assignee; postfix number with h/d/w/m/y to specify units
|}
Type values you can use are:
{| border="1"
!Name!!Description!!Value Format Notes
|-
|equals||is equal to||
|-
|not_equals||is not equal to||
|-
|equals_any||is equal to any of the strings||
|-
|contains||contains the string||
|-
|not_contains||does not contain the string||
|-
|case_contains||contains the string (exact case)||
|-
|contains_any||contains any of the strings||
|-
|not_contains_any||contains none of the strings||
|-
|contains_all||contains all of the strings||
|-
|contains_any_words||contains any of the words||
|-
|not_contains_any_words||contains none of the words||
|-
|contains_all_words||contains all of the words||
|-
|regex||matches regular expression||(As interpreted by DB)
|-
|not_regex||does not match regular expression||(As interpreted by DB)
|-
|less_than||is less than||Integer or Timestamp
|-
|greater_than||is greater than||Integer or Timestamp
|-
|changed_before||changed before||Timestamp
|-
|changed_after||changed after||Timestamp
|-
|changed_from||changed from||
|-
|changed_to||changed to||
|-
|changed_by||changed by||name of User
|-
|matches||matches||Full text of bug contains the string; use only with special 'content' field
|}
|}
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits

Navigation menu