Search¶
Changed in version 0.2.
- class bugsy.Search(bugzilla_url, token)¶
This allows searching for bugs in Bugzilla
- assigned_to(*args)¶
When search() is called it will search for bugs assigned to these users
Parameters: args – items passed in will be turned into a list Returns: Search >>> bugzilla.search_for.assigned_to("dburns@mozilla.com")
- include_fields(*args)¶
Include fields is the fields that you want to be returned when searching. These are in addition to the fields that are always included below.
Parameters: args – items passed in will be turned into a list Returns: Search >>> bugzilla.search_for.include_fields("flags")
- The following fields are always included in search:
- ‘version’, ‘id’, ‘summary’, ‘status’, ‘op_sys’, ‘resolution’, ‘product’, ‘component’, ‘platform’
- keywords(*args)¶
When search() is called it will search for the keywords passed in here
Parameters: args – items passed in will be turned into a list Returns: Search >>> bugzilla.search_for.keywords("checkin-needed")
- search()¶
Call the Bugzilla endpoint that will do the search. It will take the information used in other methods on the Search object and build up the query string. If no bugs are found then an empty list is returned.
>>> bugs = bugzilla.search_for\ ... .keywords("checkin-needed")\ ... .include_fields("flags")\ ... .search()