Get team availability
get_team_availabilityCalculate each team member's available working days, approved and pending time off over a date range for capacity planning. Returns availability fraction and team-wide totals.
Instructions
How many days each person on the team is available over a date range, and how many they are off. Built for capacity planning: a PO sizing a sprint needs to know who is away before committing to a load. Per person: workingDays in the range (weekends and public holidays already excluded), daysOff already approved, pendingDaysOff still awaiting approval, and availableDays — working days minus approved time off. Pending days are NOT subtracted from availableDays; they are the risk, so report them separately. availability is the fraction of the range the person is around (1 = fully available). A half-day absence counts as 0.5. People come back least-available first, each with their absences as date ranges. totals carries the team-wide capacity in person-days. Read-only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End of the range, inclusive (YYYY-MM-DD). Defaults to 30 days after `from`. | |
| from | No | Start of the range (YYYY-MM-DD). Defaults to today. | |
| team | No | Another team, by name. Omit for the user's own team, which is the usual question. | |
| person | No | Narrow the answer to the people on the team whose name matches. Omit for the whole team. |