Use specialized Tempo Server API clients
masterFor Tempo Server, instead of using a single monolithic client, you should use specialized classes for specific modules. Common modules include:
TempoServerAccounts: For account management.TempoServerTeams: For team management.TempoServerPlanner: For plan and assignment management.TempoServerBudgets: For budget and allocation management.TempoServerTimesheets: For timesheet creation, submission, and approval.TempoServerServlet: For worklog and attribute management.TempoServerEvents: For event subscriptions and webhooks.
# Example: Using the Teams API
from atlassian.tempo import TempoServerTeams
teams_client = TempoServerTeams(
url="https://your-tempo-server.com",
token="your-tempo-api-token"
)
# Get all teams
teams = teams_client.get_teams()
# Create new team
new_team = teams_client.create_team({
"name": "New Team",
"description": "Team description"
})
# Add member to team
teams_client.add_team_member(team_id, user_id)