get tasks for period