5.7.128. Bugzilla::Extension::AgileTools::Pool¶
5.7.128.1. NAME¶
Bugzilla::Extension::AgileTools::Pool - Bug pool Object class
5.7.128.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.128.3. DESCRIPTION¶
Pool object presents an ordered set of bugs.
5.7.128.4. METHODS¶
bugs()
Description: Returns a list of bugs in this pool Returns: Array ref of Bug objects
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