Move hour vacations to days

Convert a reason's vacations saved in hours to full and half days, so a policy in days can count them, with a preview and a report.

On this page

When a vacation reason was tracked in hours and you now want a policy in days to count it, Teamdeck converts the reason's stored vacations to full and half days for you. You see every vacation before and after in a preview, nothing changes until you run it, and a report stays on the policy afterwards.

Before you start

  • You need the Owner role.
  • Vacations saved without a reason, for example by an old import, count as the Vacation reason. When the policy counts Vacation, they are converted with it and get that reason.
  • Decide where the policy starts. Vacations from the policy's Active from day on are converted; vacations before it stay in hours. Without an Active from date, vacations from 1 Jan 2026 on are converted.
  • The migration never converts vacations that start before 1 Jan 2026. They stay in hours, and when the policy has no Active from date, they become read-only under it: only their status can still change. To keep them editable, set the policy's Active from to 1 Jan 2026 or later.
  • Any other policy that counts the reason over the same days has to end first. See Start or end a policy.

Start the migration

  1. Go to Settings and open Vacations.
  2. Open the Policies tab and create a policy in Days, or open the policy in days that should count the reason.
  3. Pick the reason under Vacation reasons, set the Active period and the rest of the policy, and click Save.
  4. When the reason has vacations saved in hours in that period, the dialog shows Migrate to days with the number of vacations instead of saving. Click it.

The policy is not saved yet. It is saved by the migration, together with the converted vacations. Closing the migration before you run it brings you back to the policy, as you left it.

Go through the steps

  1. Scope shows the reasons, how many vacations and people they have, and the period: "From 1 Dec 2026", or "From 1 Jan 2026" when the policy has no Active from date. When vacations before 1 Jan 2026 would become read-only, a note says so. To change the period, close the migration and change the policy's dates. Click Next.

  2. Half days appears when the policy allows half days. Enter the Half-day limit: a vacation of up to that many hours a day becomes a half day, a longer one a full day. It starts at half of your organization's full day, for example 4 for an 8-hour day. For part-time people the limit is scaled to their working hours on the vacation's first day. Click Next.

  3. Short absences is optional. Tick Move short absences to another reason, enter the hours they are shorter than and pick the reason they move to, for example a doctor's visit of 2 hours. They move to that reason and stay in hours.

    When a vacation crosses the policy's Active from day, this step also shows Split vacations that cross the start date. See Split vacations at the start date. Click Next.

  4. Preview lists everyone with vacations to convert: hours before, days after and the balance after the migration. Click a person to see each vacation with its amount per day before and after. A short absence shows the hours it keeps and the reason it moves to, for example 1h · Sick leave. When people outside the policy have vacations to convert, a note above the list says how many. When a unit has no bank holidays, a note lists it. The preview updates when you change a rule. Click Export CSV to keep a copy.

  5. Click Run migration. The migration takes a few seconds. You can close the window: it keeps going. While the migration runs, changes to these vacations are refused. Try again once it has finished.

    • For a policy you edited, its report stays on the policy, also while the migration runs and if it fails.
    • For a new policy, the policy appears on the Policies tab once the migration finishes. If it fails, nothing changes and you can start again.

    If the connection drops for a while, the window says it lost track of the migration. Click Check again, or look at the policy later as above.

When it is done, Results shows what was converted for each person. The policy appears on the Policies tab, and the reason counts in days from its Active from date.

What blocks a run

A vacation that starts before the policy's Active from day and ends on or after it cannot be converted, because one vacation cannot be counted in hours and in days at once. The preview marks it Crosses start date: change its dates or split it, and Run migration stays off until no such vacation is left. Either tick Split vacations that cross the start date on the Short absences step, or change its dates or split it into two vacations in the calendar by hand, then click Check again in the preview. Your rules stay as you set them.

A vacation linked to Sage HR or Sage People cannot be split by the migration. It keeps blocking the run until you change it in the calendar, unless it has no length: then it stays as it is and does not block.

A vacation saved with no length, marked Zero length, stays in hours, is not converted: it would otherwise become a half day nobody took. It stays as it is and does not count in the totals.

Split vacations at the start date

Tick Split vacations that cross the start date to let the migration cut each crossing vacation at the policy's Active from day. The option is off by default and appears only when a vacation crosses that day.

  • The earlier part keeps the dates before Active from and stays in hours, outside the policy. The preview marks it Split at the start date.
  • The later part runs from Active from to the original end and converts to days like any other vacation.
  • Both parts keep the status, the approver and the approval date of the original.
  • A vacation that crosses both Active from and Active to is split at Active from only. The later part also gets Runs past the policy end.
  • A vacation with a change awaiting a decision keeps that change on the earlier part. The later part becomes a new request that waits for the person the change was sent to, and the preview marks it Later part becomes a new request.
  • When one part would hold only weekend days, nothing is split. The vacation starts or ends on the day with working days instead, and the preview marks it Weekend days before the start dropped or Weekend days after the start dropped. When neither part has a working day, for example a weekend before a start date that is a bank holiday, the vacation still blocks the run until you change its dates.
  • A vacation with no length is never split. It stays in hours and does not block the run.

Nobody gets a notification about the split. Calendar events follow it: the original event shrinks and the later part gets its own. The report lists both parts under the person, and the later one reads Later part of a split vacation.

What the marks mean

Other marks are there for you to check, and the vacations convert anyway:

  • Part-time: the half-day limit was scaled to the person's working hours.
  • Integration: the vacation came from an HR integration.
  • Not covered: the policy does not cover the person. Their vacations still move to days, because a reason counts in one unit for everyone, and after the migration they can no longer choose this reason. Add them or their unit under Who it covers, or move their vacations to another reason first.
  • Removed person: the person was removed from the organization. Their vacations convert too, so they are in days if you restore the person.
  • Runs past the policy end: the vacation starts inside the policy's period and ends after its Active to date. It is converted to days as a whole, also on the days after the policy ends.
  • Over allowance: the converted days take the person past the allowance. They keep the vacations and a negative balance this period, and nothing negative carries over to the next one.
  • Short absence: the vacation moves to the reason you picked for short absences.
  • Change awaiting a decision: someone changed an approved vacation and the change is not approved yet. The approved version is converted too, so rejecting the change brings it back in days.
  • Split at the start date, Later part becomes a new request, Weekend days before the start dropped and Weekend days after the start dropped: see Split vacations at the start date.

See the report

A policy you edited shows Migration report on the Policies tab from the moment its migration starts, and a new policy once its migration has created it. Click it to see the newest run, per person and per vacation, with Export CSV. When the policy was migrated more than once, pick an earlier run from Run.

The export has one row per vacation: person, start, end, status, reason before, amount before, reason after, amount after and the marks.

What does not change

  • The policy's dates. The migration saves the policy with the dates you set.
  • Vacations before the policy's Active from day, vacations that start before 1 Jan 2026, and vacations of other reasons.
  • The status of each vacation, with who approved it and when. Pending requests and removal requests stay as they are, also when your organization has vacation approvals switched off, and nobody gets a notification. Webhooks get no event for the converted vacations either, so a Slack bot or another integration sends nothing about them. The activity logs and the migration report keep the record.
  • While the migration runs, changes to these vacations are refused. Adding a vacation of these reasons, or changing the reason, dates or length of one, shows "This vacation reason is being moved to days. Try again in a minute." Try again once the migration has finished.
  • If the migration fails, nothing changes: no vacation, no policy. The preview comes back with "The migration failed and changed nothing:" and the reason, with your rules kept.

Troubleshooting

  • "Vacation reason Unpaid leave is already counted by Annual leave in an overlapping period." Another policy counts the reason on the same days. Give it an Active to date before this policy's Active from date first.
  • "Another migration of these vacation reasons has not finished yet." A run of the same reasons is still going. Wait a moment. For a policy you edited, open its Migration report to see how the run is doing. For a new policy, check whether it appeared on the Policies tab; if it did not, start again.
  • "The migration never started." or "The migration stopped before it finished." The run did not get going, or stopped partway, and changed nothing. Start it again.
  • The preview says a vacation crosses the start date. Tick Split vacations that cross the start date on the Short absences step, or change its dates in the calendar. A vacation linked to Sage HR or Sage People has to be changed in the calendar.
  • The later part of a split needs approval again. It is a new request because the original had a change awaiting a decision. Approve it as any other request.
  • Migrate to days does not appear. The reason has no vacations in hours in the policy's period, so the policy saves without a migration.

Was this article helpful?