5.7.139. Bugzilla::Extension::AgileTools::TeamΒΆ
5.7.139.1. NAMEΒΆ
Bugzilla::Extension::AgileTools::Team - Bugzilla Object class presenting a team
5.7.139.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.139.3. DESCRIPTIONΒΆ
Object inherited from Bugzilla::Object.
5.7.139.4. FIELDSΒΆ
name(mutable) - Name of the teamgroup_id- ID of the group associated with the teamprocess_id(mutable) - ID of the development process the team uses. See: βProcess typesβ in extensions::AgileTools::lib::Constantscurrent_sprint_id- ID of the sprint/pool containing the teams current sprint.
5.7.139.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_idbacklogs- 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.
For managing group accessΒΆ
view_groupsΒΆ
Returns array ref of Bugzilla::Group objects containing all view groups.
add_view_groupΒΆ
Adds a new view_group to the team.
add_view_group($group)
$groupGroup object, name or id
remove_view_groupΒΆ
Removes a view group from the team.
remove_view_group($user)
$groupGroup object, name or id
edit_groupsΒΆ
Returns array ref of Bugzilla::Group objects containing all edit groups.
add_edit_groupΒΆ
Adds a new edit_group to the team.
add_edit_group($group)
$groupGroup object, name or id
remove_edit_groupΒΆ
Removes a edit group from the team.
remove_edit_group($user)
$groupGroup object, name or id
user_can_viewΒΆ
Returns boolean true if user is allowed to view the team.
user_can_view($user)
$user(optional) Bugzilla::User object. Current logged in user is used if not given.
5.7.139.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.