5.7.135. Bugzilla::Extension::AgileTools::Pool

5.7.135.1. NAME

Bugzilla::Extension::AgileTools::Pool - Bug pool Object class

5.7.135.2. SYNOPSIS

use Bugzilla::Extension::AgileTools::Pool;

my $pool = Bugzilla::Extension::AgileTools::Pool->new(1);
$pool->add_bug(1, 1);
$pool->remove_bug(2);

5.7.135.3. DESCRIPTION

Pool object presents an ordered set of bugs.

5.7.135.4. METHODS

  • bugs()
Description: Returns a list of bugs in this pool
Returns: Array ref of Bug objects
  • bug_count()
Description: Returns a count of bugs in this pool
Returns: An integer
  • add_bug($bug, $order)
Description: Inserts new bug into the pool
Params:      $bug - Bug object or ID to be added to this pool
             $order - (optional) Order of the new bug in this pool,
                      goes last if not given
Returns:     New order value of the bug in the new pool
Note:        Bug can be only in one pool at the time and it will be removed
             from any previous pool.
  • remove_bug($bug)
Description: Remove bug from pool
Params:      $bug - Bug object or ID to be removed from this pool
  • is_sprint()
Description: Check if pool is a sprint
  • is_backlog()
Description: Check if pool is a backlog
  • team_id
Description: Get ID for team pool belongs to
  • team
Description: Get team pool belongs to

5.7.135.6. SEE ALSO

Bugzilla::Object


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