Returns a list of BZ::Client::Product instances based on the given parameters. $products = BZ::Client::Product->get( $client, \%params ) (none) get = BZ::Client::Product->get( $client, \%params ) Returns a list of the ID's of the products the user can search or enter bugs against. (none) get_accessible_products = BZ::Client::Product->get_selectable_products( $client ) Returns a list of the ID's of the products the user can enter bugs against. $products = BZ::Client::Product->get_enterable_products( $client ) (none) get_enterable_products = BZ::Client::Product->get_enterable_products( $client ) Returns a list of the ID's of the products the user can search on. $products = BZ::Client::Product->get_selectable_products( $client ) get_selectable_products = BZ::Client::Product->get_selectable_products( $client ) 705 - Product must define a default milestone You must specify a description for this product. Here's an example of what a return value might look like: [ Note that booleans will be represented with the strings '1' and '0'. Removed (string) The value that was previously set in this field. The keys are the names of the fields that were changed, and the values are a hash with two keys: addedĪdded (string) The value that this field was changed to. The changes that were actually done on this product. Id (int) The ID of the product that was updated. ReturnsĪn array or arrayref of hashes containing the following: id Is_open (boolean) True if the product is currently allowing bugs to be entered into it. Has_unconfirmed (boolean) Allow the UNCONFIRMED status to be set on bugs in this products. descriptionĭescription (string) Update the long description for these products to this value. default_milestoneĭefault_milestone (string) When a new bug is filed, what milestone does it get by default if the user does not choose one? Must represent a milestone that is valid for this product. Names (array) Text names of the products that you wish to update. Ids (array) Numeric ID's of the products you wish to update. this is marked as experimental.Įither "ids" or "names" is required to select the bugs you want to update.Īll other values change or set something in the product. This allows you to update a Group in Bugzilla. update $id = BZ::Client::Product->update( $client, \%params ) You must specify a version for this product. (Product names must be globally unique in Bugzilla.) 703 - Product must have description You specified the name of a product that already exists. The name specified for this product was longer than the maximum allowed length. You must specify a non-blank name for this product. You must specify an existing classification name. Errors 51 - Classification does not exist create_seriesĬreate_series (boolean) True if you want series for New Charts to be created for this new product. default_milestoneĭefault_milestone (string) The default milestone for this product. classificationĬlassification (string) The name of the Classification which contains this product. Has_unconfirmed (boolean) Allow the UNCONFIRMED status to be set on bugs in this product. Version (string) The default version for this product. Must be globally unique within Bugzilla.ĭescription (string) A description for this product. Some params must be set, or an error will be thrown. Marked as experimental as of Bugzilla 5.0. This allows you to create a new Product in Bugzilla. create $id = BZ::Client::Product->create( $client, \%params ) This section lists the class methods, which are available in this module. My $products = BZ::Client::Product->get( $client, \%params ) CLASS METHODS My $ids = BZ::Client::Product->get_accessible_products( $client ) my $client = BZ::Client->new( url => $url, Instances of this class are returned by BZ::Client::Product::get. This class provides methods for accessing and managing products in Bugzilla. BZ::Client::Product - Client side representation of a product in Bugzilla VERSION
0 Comments
Leave a Reply. |