---
title: "Feature: Import a roster from a template"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1791229910@main"
source: "Changelog/1.0.0/Feature-1791229910-ImportARosterFromATemplate.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Import a roster from a template {#feature-1791229910}

## Description {#description}

`getRosterImportTemplate` returns an XLSX template in the planner's language for at most 28 days or the week of
`weekOf`: a row per person the planner plans with personnel number and name, a column per date, public holidays
and weekly days off filled in, and a second sheet with the model codes and the word for a day off. `importRosterEntries`
reads it back as XLSX or CSV: a model code, `off` or `frei` per cell, an empty cell keeps the day. Every
imported day becomes a draft, also next to a published entry, so a published plan never changes without publishing.
The whole file is checked first and rejected with the row and date of every problem; `dryRun` only checks. The
answer counts created, changed and unchanged days. The roster week offers the template and the import.

## Impact {#impact}

New operations `GET /roster-entries/import-template` and `POST /roster-entries/import`. The package
`web-vision/adsum-working-time` now requires `phpoffice/phpspreadsheet` itself.
