Skip to content

Import earlier shifts

Available on
  • Trial
  • Pro
  • Enterprise
Who can do this
  • Import earlier shifts, which needs schedule:write as wellRoles: AdministratorPermission: workforce:admin

The earlier shifts import records the shifts your employees worked before you started planning people in werkplan, from a CSV file with one row per employee and week. The working-time rules that look back over worked shifts, such as average weekly hours, runs of nights, weekly rest and the overtime caps, then count them from your first planned week.

On the Schedule screen, click Import earlier shifts…. The button shows only to someone with both schedule:write and workforce:admin. How a CSV import works explains the dialog, the file and its formats.

A row is one employee’s calendar week: weekStart is its Monday, and each day’s cell holds the code of the shift type they worked that day, as the workforce schedule shows it, matched without regard to capitals. A day today or later is refused on its cell.

  • A cell naming another shift type than the day’s shift replaces it; the same type is unchanged.
  • An empty cell leaves the day as it is.
  • Each shift is saved as one placed by hand, filed under the employee’s shift group on that day.

Because the shifts were worked, not planned, werkplan doesn’t check the working-time limits, the notice period or coverage on them. It still checks that the employee had a shift group that day holding the shift type, that the shift type runs on that weekday, that they were employed then, and that no absence touches the day; a week one of whose days is refused writes none of them. A day whose shift was let past a working-time limit is never replaced: change it on the Schedule screen.

employeeNumber names an employee by their number, exactly. Import the employees and add the shift types first, and date your company shift policy back to the earliest week, or give the employees shift groups that cover those weeks.

ColumnFormatWhat it holdsExample
employeeNumberRequiredImport keyTextThe number of the employee who worked the weekE-0153
weekStartRequiredImport keyDate, YYYY-MM-DD or your organisation's short dateThe Monday the calendar week starts on2026-06-01
mondayTextThe code of the shift type worked on Monday, as the workforce schedule shows it; empty when nothing is recordedE
tuesdayTextThe code of the shift type worked on Tuesday, as the workforce schedule shows it; empty when nothing is recordedE
wednesdayTextThe code of the shift type worked on Wednesday, as the workforce schedule shows it; empty when nothing is recordedE
thursdayTextThe code of the shift type worked on Thursday, as the workforce schedule shows it; empty when nothing is recordedE
fridayTextThe code of the shift type worked on Friday, as the workforce schedule shows it; empty when nothing is recordedE
saturdayTextThe code of the shift type worked on Saturday, as the workforce schedule shows it; empty when nothing is recordedE
sundayTextThe code of the shift type worked on Sunday, as the workforce schedule shows it; empty when nothing is recordedE
  • An employeeNumber that matches no employee: an employee without a number can’t be found by an import, so give them one on their page first.
  • A weekStart that isn’t a Monday, and the same employee’s week twice in the file.
  • A code that matches no shift type, and a day that isn’t before today.
  • When it is written: a day the employee had no shift group on, or one that doesn’t hold the shift type, a shift type that doesn’t run that weekday, a day they weren’t employed, and a day an absence touches.

Earlier shifts lie before today. Planning people counts them toward the working-time rules, such as average weekly hours and the overtime caps; production planning doesn’t read them, so the master plan has nothing to take in.

Still stuck? Write to support@example.com.