Search¶
Changed in version 0.2.
- class bugsy.Search(bugsy)¶
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")
- bug_number(bug_numbers)¶
When you want to search for a bugs and be able to change the fields returned.
Parameters: bug_numbers – A string for the bug number or a list of strings Returns: Search >>> bugzilla.search_for.bug_number(['123123', '123456'])
- change_history_fields(fields, value=None)¶
- 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()
- summary(*args)¶
When search is called it will search for bugs with the words passed into the methods
Parameters: args – items passed in will be turned into a list Returns: Search >>> bugzilla.search_for.summary("663399")
- timeframe(start, end)¶
When you want to search bugs for a certain time frame.
Parameters: - start –
- end –
Returns: