Frappe HR

Frappe HR

Shift Schedule Assignment

Rohan Kulkarni joins the alternate-week evening crew on the press line at the Nova Industries Pune branch. From Monday, 30 November 2026, he works the Evening Shift from Monday to Friday every other week, with no end date. HR has already set up the pattern as the Shift Schedule "Evening Shift - Alternate Weeks". Now Rohan has to be put on it.

A Shift Schedule Assignment links one employee to one Shift Schedule. Frappe HR reads the schedule and creates the employee's Shift Assignments for the matching dates, a few months at a time, and keeps adding more while the Shift Schedule Assignment is enabled. For one employee, create it directly as below. For many employees at once, the Shift Assignment Tool creates one per employee. For how this fits with the other shift records, see Shift Management.

Before you begin

  • The Employee record is Active, and the Shift Schedule exists.
  • You have the HR User or HR Manager role.
  • To limit check-ins to a site, create a Shift Location first.

Create a Shift Schedule Assignment

  1. Open the Shift & Attendance workspace and select Shift Schedule Assignment under Shift Assignments. Select Add Shift Schedule Assignment.
    Shift Schedule Assignment list with the Shift Schedule Assignment sidebar link and the Add Shift Schedule Assignment button highlighted
  2. Select the Employee. The name and company are filled in.
  3. Select the Shift Schedule, and a Shift Location if check-ins must be near a site.
  4. Keep Shift Status as Active. The created Shift Assignments get this status, and Inactive assignments are ignored for check-ins and attendance.
  5. Tick Enabled so that Frappe HR keeps creating assignments with no end date.
  6. Set Create Shifts After to the day before the first shift, here Sunday, 29 November 2026. Shifts are created from the next day.
    New Shift Schedule Assignment for HR-EMP-00004 Rohan Kulkarni with Employee, Shift Schedule Evening Shift - Alternate Weeks, Shift Status Active, Enabled and Create Shifts After 11-29-2026 highlighted
  7. Select Save. The record does not need to be submitted.

The Shift Schedule now lists the new record under its Shift Schedule Assignment connection, so you can see everyone who follows the pattern.

Shift Schedule Evening Shift - Alternate Weeks with the Shift Schedule Assignment connection showing 1 highlighted

When the Shift Assignments are created

Saving the form does not create any Shift Assignments. An hourly background job looks for enabled Shift Schedule Assignments whose Create Shifts After date is today or earlier. For each one, it creates Shift Assignments for about 90 days, starting the day after Create Shifts After, and adds a comment to the record with the dates covered.

After each run, Create Shifts After moves to the end of the last created assignment, so the job runs again when that date arrives. For Rohan, the first assignments appear on 29 November 2026, beginning with the Evening Shift from 30 November to 4 December. Each created Shift Assignment links back to this record, and Auto Attendance marks Attendance against it as usual.

To stop the pattern, clear Enabled. Assignments already created stay; end or deactivate them on the Shift Assignments if the employee leaves the crew early.

Create assignments from the Shift Assignment Tool or the Roster

The Shift Assignment Tool, with Action set to Assign Shift Schedule, creates a Shift Schedule Assignment for each selected employee and creates their Shift Assignments at once from the Start Date. With an End Date it creates them up to that date and leaves the record disabled. Without one it leaves the record enabled, and the hourly job continues from there.

Adding a repeating shift on the Roster also creates a Shift Schedule Assignment, together with a matching schedule if none exists. Deleting the repeating shift on the Roster cancels and deletes the Shift Assignments it created.

Troubleshooting

No Shift Assignments appear after saving

The hourly job has not run yet, Create Shifts After is still in the future, or Enabled is cleared. Check the comments on the record for the last run, and check the error log if a comment is missing.

Shift assignments after this date are already created

You moved Create Shifts After to a date that the job has already covered. Choose a date later than the end of the last created assignment, which the message names, or cancel those assignments first.

Shift Assignments stop at a certain date

The job could not create the next assignment, usually because the employee already has an active Shift Assignment on that date. It stops for this record, writes the reason to the error log and tries again every hour. End or deactivate the conflicting Shift Assignment, or tick Allow Multiple Shift Assignments for Same Date in HR Settings if the shifts do not overlap in time, and the next run continues from Create Shifts After.

Frequently asked questions

Can an employee follow two schedules?

Create one Shift Schedule Assignment for each schedule, for example an Evening Shift schedule and a Day Shift schedule on alternate weeks. The two shifts must not overlap in time on the same date.

How do I change the schedule an employee follows?

Clear Enabled on the current record, then create a new Shift Schedule Assignment for the new schedule. Set its Create Shifts After to the old record's Create Shifts After date, so the new shifts start after the last ones already created.

Last updated 3 weeks ago
Was this helpful?
Thanks!