5.7.70. Bugzilla::StatusÂķ
5.7.70.1. NAMEÂķ
Bugzilla::Status - Bug status class.
5.7.70.2. SYNOPSISÂķ
use Bugzilla::Status;
my $bug_status = new Bugzilla::Status({ name => 'IN_PROGRESS' });
my $bug_status = new Bugzilla::Status(4);
my @closed_bug_statuses = closed_bug_statuses();
Bugzilla::Status::add_missing_bug_status_transitions($bug_status);
5.7.70.3. DESCRIPTIONÂķ
Status.pm represents a bug status object. It is an implementation of Bugzilla::Object, and thus provides all methods that Bugzilla::Object provides.
The methods that are specific to Bugzilla::Status are listed
below.
5.7.70.4. METHODSÂķ
closed_bug_statuses
Description: Returns a list of C<Bugzilla::Status> objects which can have a resolution associated with them ("closed" bug statuses). Params: none. Returns: A list of Bugzilla::Status objects.
can_change_to
Description: Returns the list of active statuses a bug can be changed to given the current bug status. If this method is called as a class method, then it returns all bug statuses available on bug creation. Params: none. Returns: A list of Bugzilla::Status objects.
comment_required_on_change_from
- Description
Checks if a comment is required to change to this status from another status, according to the current settings in the workflow.
Note that this doesnât implement the checks enforced by the various
commentonparametersâthose are checked by internal checks in Bugzilla::Bug.
- Params
$old_status- The status youâre changing from.
- Returns
1if a comment is required on this change,0if not.
add_missing_bug_status_transitions
Description: Insert all missing transitions to a given bug status. Params: $bug_status - The value (name) of a bug status. Returns: nothing.