Blocking Shifts
Note
Configuration can be managed in two ways:
- Preferred: via the browser-based StaffSchedulingWeb interface.
- Advanced/manual: by editing the JSON files in the case folder directly.
For month-based cases, files are usually located in cases/{case_id}/{MM_YYYY}/... (for example cases/77/11_2024/...).
Blocked Shifts¶
Blocked shifts are used to manually restrict specific shifts for individual employees based on their availability. For example, you may want to indicate that an employee is unavailable every Thursday, not allowed to work night shifts, or only permitted to work night shifts. This is a hard constraint.
These configurations can be modified in wishes_and_blocked.json in the active case folder, typically:
cases/{case_id}/{MM_YYYY}/wishes_and_blocked.jsonfor month-based casescases/{case_id}/wishes_and_blocked.jsonfor non-month cases
The structure of this file looks as follows:
{
"blocked_days": [
1,
2
],
"blocked_shifts": [
[
25,
"F"
]
],
"firstname": "Janett",
"key": 791,
"name": "Branz",
"wish_days": [],
"wish_shifts": []
}
To add a blocked day, just add the number to the list; to add a blocked shift, add a list with two entries [day, german shift abbreviation] to "blocked_shifts".