5.7.88. Bugzilla::WebService::Classification

5.7.88.1. NAME

Bugzilla::Webservice::Classification - The Classification API

5.7.88.2. DESCRIPTION

This part of the Bugzilla API allows you to deal with the available Classifications. You will be able to get information about them as well as manipulate them.

5.7.88.3. METHODS

See Bugzilla::WebService for a description of how parameters are passed, and what STABLE, UNSTABLE, and EXPERIMENTAL mean.

Although the data input and output is the same for JSONRPC, XMLRPC and REST, the directions for how to access the data via REST is noted in each method where applicable.

5.7.88.4. Classification Retrieval

get

EXPERIMENTAL

Description

Returns a hash containing information about a set of classifications.

REST

To return information on a single classification:

GET /rest/classification/<classification_id_or_name>

The returned data format will be the same as below.

Params

In addition to the parameters below, this method also accepts the standard include_fields and exclude_fields arguments.

You could get classifications info by supplying their names and/or ids. So, this method accepts the following parameters:

ids

An array of classification ids.

names

An array of classification names.

Returns

A hash with the key classifications and an array of hashes as the corresponding value. Each element of the array represents a classification that the user is authorized to see and has the following keys:

id

int The id of the classification.

name

string The name of the classification.

description

string The description of the classificaion.

sort_key

int The value which determines the order the classification is sorted.

products

An array of hashes. The array contains the products the user is authorized to access within the classification. Each hash has the following keys:

name

string The name of the product.

id

int The id of the product.

description

string The description of the product.

Errors

900 (Classification not enabled)

Classification is not enabled on this installation.

History

Added in Bugzilla 4.4.

REST API call added in Bugzilla 5.0.


This documentation undoubtedly has bugs; if you find some, please file them here.