5.7.221. Bugzilla::Extension::RuleEngine::WebService::RuleGroup¶
5.7.221.1. NAME¶
Bugzilla::Extension::RuleEngine::WebService::RuleGroup - The RuleEngine RuleGroup API
5.7.221.2. DESCRIPTION¶
This API allows you to list, get, create and update rule groups.
5.7.221.3. METHODS¶
list¶
- Description
Returns information about all the rule groups a user can view.
- Params
none
- Returns
Returnsrule_groupsan array of hashes containing rule groups.
get¶
- Description
Returns information about the selected rule groups.
- Params
- names
An array of names to get information on.
- ids
An array of IDs to get information on.
- Returns
Returnsrule_groupsan array of hashes containing the selected rule groups.
create¶
- Description
Create a new rule group.
- Params
- name
stringThe name of the rule group.
- description
stringThe description of the rule group.
- isactive
booleanTrue if the rule group is active. False if inactive.
- user
stringThe user name to run rules in this rule group as. Must be a valid Bugzilla account.
- maintainers
array-of-stringAn array of Bugzilla user names to notify of rule changes and kill switches.
- view_groups
array-of-stringAn array of Bugzilla group names who can view rules in this rule group.
- edit_groups
array-of-stringAn array of Bugzilla group names who can edit rules in this rule group.
- Returns
Returnsrule_groupa hash containing the new rule group.
update¶
- Description
Update an existing rule group.
- Params
- rule_groups
array-of-hashesAn array of hashes, each item containing a separate rule group to edit. Each hash may contain:
- id optional
intThe ID of the rule group. If this is supplied then the name of the rule group can be changed.
- name optional
stringThe name of the rule group. If ID is supplied the name will be updated.Note Either name or id must be supplied.
- description optional
stringThe description of the rule group.
- isactive optional
booleanTrue if the rule group is active. False if inactive.
- user optional
stringThe user name to run rules in this rule group as. Must be a valid Bugzilla account.
- maintainers optional
array-of-stringAn array os Bugzilla user names to notify of rule changes and kill switches.
- view_groups optional
array-of-stringAn array os Bugzilla group names who can view rules in this rule group.
- edit_groups optional
array-of-stringAn array os Bugzilla group names who can edit rules in this rule group.
- Returns
Returns
changesan array of hashes. Each hash describes the changes to one rule group. Only fields that were changed will be returned.Each field will be returned as an array. Element 0 will be the old value that was replaced. Element 1 will be the new value for that field.
This documentation undoubtedly has bugs; if you find some, please file them here.