How to assign tasks to a shift