5.7.175. Bugzilla::Extension::ListOfBugs::WebService¶
5.7.175.1. NAME¶
Bugzilla::Extension::WebService::ListOfBugs - The API for creating, changing and getting lists of bugs.
5.7.175.2. DESCRIPTION¶
A List of bugs is a saved, static list of bug numbers. This allows you to save a snapshot of bug numbers and present it to other users as a fixed list of bugs that can only be changed manually.
5.7.175.3. METHODS¶
See Bugzilla::WebService for a description of how parameters are passed, and what STABLE, UNSTABLE and EXPERIMENTAL mean.
create¶
- Description
Create a bug list.
- Params
namestringThe name of this list. Must be unique
descriptionstringA description of this list.
bugsarrayarray of bug ids that will be used when running the list search
view_groups
arrayAn array of group names to restrict visiblity of this search to members of the named groupsIf no view groups are supplied, the list will be public.
edit_groups
arrayAn array of group names to restrict editing of this search to members of the named groupsIf no edit groups are supplied, only the creator of the list may edit the list.
- Returns
id- intThe ID of the newly created bug list
name- stringThe name of the newly created bug list
get¶
- Description
Get the list of bugs associated with this bug list, along with other information.
- Params
You can pass either a list of ids, or names
ids(array) - an array of integer list ids.names(array) - an array of string list names.
- Returns
idThe ID of this list.nameThe name of this list.descriptionA description of this list.ownerThe user that owns this list.updatedThe time that this list was created or last modified.lastusedThe time that this list was last used as a search.bugsAn array of bug ids
update¶
- Description
Add or remove bugs in the buglist, or change the ownership or visibility of the list.
- Params
idsarrayAn array of bug list ids to be updated.
namesarrayAn array of bug list names to be updated.
ownerstringChange the owner of the list to the supplied email address.
descriptionstringChange the description to the supplied string.
bugsUpdate the list of bugs. A hash containing one or more of the following keys - add, remove, set.
addarrayThe listed bug ids will be added to the bug list.
removearrayThe listed bug ids will be removed from the bug list.
setarrayThe current list will be removed and replaced with the new bug list.
view_groupsThese groups control the visibility of the bug list. A list with no view groups is a public list.
A hash containing one or more of the following keys - add, remove, set.
addarrayThe listed group names will be added to the view group list.
removearrayThe listed group names will be removed from the view group list.
setarrayThe current view groups will be removed and replaced with the new view groups.
edit_groupsThese groups control the editability of the group list. A list with no edit groups may only be edited by the owner of the list.
A hash containing one or more of the following keys - add, remove, set.
addarrayThe listed group names will be added to the edit group list.
removearrayThe listed group names will be removed from the edit group list.
setarrayThe current view groups will be removed and replaced with the new edit groups.
list¶
- Description
Returns a list of all bug lists that you have permission to view.
- Returns
Returns an array of hashes. Each hash contains the following keys:
idintAn integer id identifying this bug list
namestringA the name of this list
ownerstringThe owner of this search
descriptionstringA description of this search
This documentation undoubtedly has bugs; if you find some, please file them here.