5.7.132. Bugzilla::Extension::AgileTools::Team¶
5.7.132.1. NAME¶
Bugzilla::Extension::AgileTools::Team - Bugzilla Object class presenting a team
5.7.132.2. SYNOPSIS¶
use Bugzilla::Extension::AgileTools::Team
my $team = new Bugzilla::Extension::AgileTools::Team(1);
my $team_id = $team->id;
my $name = $team->name;
my $group = $team->group;
my $group_id = $team->group_id;
my $process_id = $team->process_id;
my @members = @{$team->memebers};
$team->add_member("john.doe@example.com");
$team->add_member($user_id);
my $member = Bugzilla::User->check("john.doe@example.com");
$team->remove_member($member);
$team->remove_member($user_id);
my $user = new Bugzilla::User(1);
my @teams = @{$user->agile_teams};
5.7.132.3. DESCRIPTION¶
Object inherited from Bugzilla::Object.
5.7.132.4. FIELDS¶
name
(mutable) - Name of the team
group_id
- ID of the group associated with the team
process_id
(mutable) - ID of the development process the team uses. See: extensions::AgileTools::lib::Constants/Process types
current_sprint_id
- ID of the sprint/pool containing the teams current sprint.
5.7.132.5. METHODS¶
Accessors¶
For all FIELDS there is $object->fieldname method
Additionally there are accessors for
group
- Get the Bugzilla::Group object matching team->group_id
backlogs
- Arrayref of Backlog objects linked to this team
For managing team members¶
members¶
Returns array ref of Bugzilla::User objects containing all team members.
For user permissions¶
user_can_edit¶
Returns boolean true if user is allowed to edit the team.
user_can_edit($user)
$user
(optional) Bugzilla::User object. Current logged in user is used if not given.
For items¶
unprioritized_items¶
Returns array ref of Bugzilla::Bug objects which are in teams responsibilities, but are not in any pool.
5.7.132.7. NOTES¶
None of the methods check if user is allowed to modify the teams. This should be done by higher level controller methods using this as only a interface to the stored data.