# Assign Crews

Operators are usually scheduled as a **crew**, a named group that works together. Kanoa uses these assignments to compare who
was meant to be at work with who actually logged in. This lesson shows you how to assign a crew or one operator to a shift.

Crews belong to a **site**, not to a single line. A crew assigned to a site shift covers whichever line each operator logs in
to.

## Open Crew Management

Open **Ops → Scheduling → Crews** from the navigation menu. The screen has three tabs: **Crews**, **Crew Members** and
**Scheduling**.

{/*
TODO: Confirm on a gateway which security function is needed to open the Crews screen and to change crews and assignments.
The docs don't name one. Add a sentence saying so, as the other lessons do.
*/}

## Check the Crew

Most crews are set up once and left alone. Check that the crew you want exists and has the right people.

1. On the **Crews** tab, look for the crew, for example **Day Crew** at the **Philadelphia** site. To add one, create a crew
   at the site.
2. On the **Crew Members** tab, select the crew. Add or remove operators here.
3. Give each member a **start date**, and an **end date** once they leave the crew.

Membership has dates, so the history of who was on which crew is kept when people move between crews.

## Assign a Crew to a Shift

1. Open the **Scheduling** tab.
2. Assign the crew to the shift, for example **Day Crew** to the Day Shift at Philadelphia. Set the start and end of the
   assignment.
3. Review the list of assignments. You'll see one assignment for each crew member, not one for the crew.

The assignment's start and end are the scheduled time. Kanoa doesn't recalculate them from the shift calendar, so enter the
times you want people scheduled for.

:::note
Assigning a crew records who is on the crew on the assignment's start date. Someone who joins the crew later isn't added to
shifts already assigned.
:::

## Assign One Operator

To cover a gap without changing a crew, assign a single operator to a shift on the **Scheduling** tab. Crew and individual
assignments appear in the same list. Kanoa blocks overlapping assignments for the same person on the same shift or asset.

To change an assignment, use the **Scheduling** tab to view, end or delete it.

:::info[Is crew scheduling required?]
No. But without it, Attendance and Labor Gap have nothing to compare against. An operator who logs in without being
scheduled is measured against the whole report window, which makes their attendance look low.
:::

{/*
TODO: Confirm on a gateway the exact fields and button labels on the Scheduling tab, such as the crew or operator selector,
the shift selector and the start and end entries.
*/}

::embed-section{src="../../kanoa-ops/ole-pole-analysis.md#1-schedule-the-labor-optional" collapsed="true" summary="Reference Materials: Schedule the Labor - Crews, members and assignments."}

## Check Your Understanding

1. Is a crew tied to a line or to a site?
2. You assign Day Crew to a shift, and a new member joins the crew next week. Are they on that shift?
3. How do you cover one absent person without changing a crew?

<details>
<summary>Answers</summary>

1. To a site.
2. No. The assignment records who was on the crew on its start date.
3. Assign an individual operator to the shift on the **Scheduling** tab.

</details>
