Package org.azd.work
Class WorkApi
- All Implemented Interfaces:
WorkDetails
Work class to manage work API
-
Constructor Summary
ConstructorDescriptionWorkApi
(Connection connection) Pass the connection object to work with Work Api -
Method Summary
Modifier and TypeMethodDescriptiondeleteTeamSettingsIteration
(String teamName, String iterationId) Delete a team's iteration by iterationIdgetTeamIterationWorkItems
(String teamName, String iterationId) Get work items for iterationgetTeamMemberCapacity
(String iterationId, String teamName, String teamMemberId) Get a team member's capacitygetTeamSettingsIteration
(String teamName, String iterationId) Get team's iteration by iterationIdgetTeamSettingsIterations
(String teamName) Get a team's iterationsgetTeamSettingsIterations
(String teamName, IterationsTimeFrame timeFrame) Get a team's iterations using timeframe filtergetTotalTeamCapacity
(String iterationId, String teamName) Get a team's capacity including total capacity and days offupdateTeamMemberCapacity
(String iterationId, String teamName, String teamMemberId, TeamMemberCapacityIdentityRef teamMemberCapacity) Update a team member's capacityupdateTeamMembersCapacity
(String iterationId, String teamName, List<TeamMemberCapacityIdentityRef> teamMembersCapacity) Replace a team's capacityMethods inherited from class org.azd.utils.AzDAsyncApi
createAsync
-
Constructor Details
-
WorkApi
Pass the connection object to work with Work Api- Parameters:
connection
- Connection object
-
-
Method Details
-
getTeamSettingsIterations
Get a team's iterations- Specified by:
getTeamSettingsIterations
in interfaceWorkDetails
- Parameters:
teamName
- Team ID or team name- Returns:
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
getTeamSettingsIterations
public TeamSettingsIterations getTeamSettingsIterations(String teamName, IterationsTimeFrame timeFrame) throws AzDException Get a team's iterations using timeframe filter- Specified by:
getTeamSettingsIterations
in interfaceWorkDetails
- Parameters:
teamName
- Team ID or team nametimeFrame
- A filter for which iterations are returned based on relative time. Only 'Current' is supported currently.IterationsTimeFrame
- Returns:
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
getTeamIterationWorkItems
public IterationWorkItems getTeamIterationWorkItems(String teamName, String iterationId) throws AzDException Get work items for iteration- Specified by:
getTeamIterationWorkItems
in interfaceWorkDetails
- Parameters:
teamName
- Team ID or team nameiterationId
- ID of the iteration- Returns:
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
getTeamSettingsIteration
public TeamSettingsIteration getTeamSettingsIteration(String teamName, String iterationId) throws AzDException Get team's iteration by iterationId- Specified by:
getTeamSettingsIteration
in interfaceWorkDetails
- Parameters:
teamName
- ID of the iterationiterationId
- Team ID or team name- Returns:
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
deleteTeamSettingsIteration
Delete a team's iteration by iterationId- Specified by:
deleteTeamSettingsIteration
in interfaceWorkDetails
- Parameters:
teamName
- Team ID or team nameiterationId
- ID of the iteration- Throws:
AzDException
- Default Api Exception handler.
-
getTotalTeamCapacity
Get a team's capacity including total capacity and days off- Specified by:
getTotalTeamCapacity
in interfaceWorkDetails
- Parameters:
iterationId
- Pass the iteration id.teamName
- The name of the Azure DevOps organization.- Returns:
- TeamCapacity Object
TeamCapacity
- Throws:
AzDException
- Default Api Exception handler.
-
getTeamMemberCapacity
public TeamMemberCapacityIdentityRef getTeamMemberCapacity(String iterationId, String teamName, String teamMemberId) throws AzDException Get a team member's capacity- Specified by:
getTeamMemberCapacity
in interfaceWorkDetails
- Parameters:
iterationId
- Pass the team iteration id.teamName
- Name of Azure DevOps team.teamMemberId
- Id of the team member.- Returns:
- TeamMemberCapacityIdentityRef Object
TeamMemberCapacityIdentityRef
- Throws:
AzDException
- Default Api Exception handler.
-
updateTeamMembersCapacity
public TeamMemberCapacityIdentityRefs updateTeamMembersCapacity(String iterationId, String teamName, List<TeamMemberCapacityIdentityRef> teamMembersCapacity) throws AzDException Replace a team's capacity- Specified by:
updateTeamMembersCapacity
in interfaceWorkDetails
- Parameters:
iterationId
- Pass the team iteration id.teamName
- Name or id of the Azure DevOps team.teamMembersCapacity
- A list of team members capacity to update.- Returns:
- TeamMemberCapacityIdentityRef Object
TeamMemberCapacityIdentityRef
- Throws:
AzDException
- Default Api Exception handler.
-
updateTeamMemberCapacity
public TeamMemberCapacityIdentityRef updateTeamMemberCapacity(String iterationId, String teamName, String teamMemberId, TeamMemberCapacityIdentityRef teamMemberCapacity) throws AzDException Update a team member's capacity- Specified by:
updateTeamMemberCapacity
in interfaceWorkDetails
- Parameters:
iterationId
- Pass the team iteration id.teamName
- Name of id of the Azure DevOps team.teamMemberId
- Id of the team member.teamMemberCapacity
- Team member capacity object to update. You can only pass the list of activities and optionally days off.- Returns:
- TeamMemberCapacityIdentityRef Object
TeamMemberCapacityIdentityRef
- Throws:
AzDException
- Default Api Exception handler.
-