---
title: How do I set up and apply Shift Conditions?
description: Create Shift Conditions that set a minimum, set or add hours to a shift and assign earn codes, then apply them on timesheets, in bulk or automatically per project.
---

[Skip to content](https://ask.smartbarrel.io/how-do-shift-conditions-work#main-content)

English

Show submenu for translations

[Customer portal](https://ask.smartbarrel.io/ticketsview?hsLang=en)

![smartbarrel-logo-1.png\]](https://ask.smartbarrel.io/hs-fs/hubfs/smartbarrel-logo-1.png?height=39&name=smartbarrel-logo-1.png)

- Home
- Products
- Pricing
- Blog
- Company

Open main navigation

Close main navigation

- Home
- Products
- Pricing
- Blog
- Company
- English
  
  Show submenu for translations
- [Customer portal](https://ask.smartbarrel.io/ticketsview)
- Go to Dashboard

 Go to Dashboard

 Search the SmartBarrel Knowledge Base

- There are no suggestions because the search field is empty.

1. [SmartBarrel Knowledge Base](https://ask.smartbarrel.io/?hsLang=en)
2. [SmartBarrel Dashboard](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en)
3. [Timesheet Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#timesheet-management)

# How do I set up and apply Shift Conditions?

Shift Conditions make sure workers are paid the hours they are owed, even when that is more than the time between their punch in and punch out. Union agreements and company policies often guarantee minimum pay for a rained-out day, a short show-up, or an emergency call-out. With Shift Conditions you set those rules up once, and SmartBarrel applies them to the timesheet for you.

This guide covers how Shift Conditions work, how to create one, the three ways to apply it, and what you will see on the timesheet.

### Before you start

- You need the **Manage Shift Conditions** permission to create or edit conditions, and **Apply Shift Conditions** to use them on shifts. See [Permissions](https://example.com/#permissions).
- Shift Conditions only apply to **Labor** shifts. Travel and PTO shifts are never changed.
- Punch times never change. SmartBarrel keeps the worked hours from the punches and stores the extra time separately as added hours.

### How Shift Conditions work

A condition is made of one or more **hour rules**. Each rule pairs a "**When Shift is"** check (which shifts it matches, based on worked hours) with a "**Then"** action (what it does to the hours). A condition can hold up to 10 rules.

### When Shift is

| Option | Matches shifts with worked hours... |
| --- | --- |
| Any duration | of any length |
| Less than X | under X (not including X) |
| At least X | X or more |
| Between X and Y | from X up to, but not including, Y |

### Then

| Action | What it does |
| --- | --- |
| Set minimum to X | Tops the shift up to X hours. Longer shifts are left alone. |
| Set hours to X | Makes the total exactly X hours. |
| Add X | Adds X hours to the total. |

### Rule limits

- Hours accept up to 2 decimals (for example, 2.25) and can't exceed 24.
- 0 is only allowed as the start of a Between rule (for example, Between 0 and 2).
- Rules in one condition can't overlap. For example, "Less than 4" and "Between 2 and 6" both match a 3-hour shift, so SmartBarrel won't save them together.
- If a shift doesn't match any rule, nothing is added.

### Earn codes

By default, a condition only changes hours and the shift keeps its default earn codes. Turn on **Assign Earn Code** to choose how the hours are paid:

- **All Hours:** the whole total (worked + added) is paid under one earn code. Use this for cases like mandatory overtime on a project.
- **Additional Hours:** only the added hours get the chosen earn code. Worked hours keep their normal earn codes.

When a condition assigns an earn code, the shift's earn codes are fixed and will be ignored by overtime calculations. Removing the condition reverts them back to default earn codes.

### Step 1: Create a Shift Condition

In this example, we create a **Rain Delay** condition for the Baxter Building project: crews sent home for rain are paid at least 4 hours, and the added time is paid as Regular Time.

1. Go to **Company → Shift Conditions** and click **Create a Shift Condition**.  
   ![Company \> Shift Conditions page with the Create a Shift Condition button highlighted](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-01-page.jpg?width=670&height=415&name=shift-conditions-01-page.jpg)
2. The **Create Condition** panel opens. Enter a **Condition Name** (required) and an optional **Description**. The description helps supervisors pick the right condition on the timesheet.  
   ![Blank Create Condition panel showing name, description, hour conditions, earn code, divisions, and projects](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-02-create-drawer.jpg?width=420&height=610&name=shift-conditions-02-create-drawer.jpg)
3. Click the **Icon** button to pick an icon and color. The icon shows next to the condition on every shift it is applied to, so pick one that is easy to recognize.  
   ![Icon picker open next to the Icon button, showing icons and colors](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-03-icon.jpg?width=420&height=394&name=shift-conditions-03-icon.jpg)
4. Under **Hour Conditions**, click **Add Condition**. In **When Shift is**, choose which shifts the rule matches and enter the hours. For Rain Delay, choose **less than** and enter **4**.  
   ![When Shift is dropdown showing any duration, less than, at least, and between](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-04-when-shift-is.jpg?width=597&height=260&name=shift-conditions-04-when-shift-is.jpg)
5. In **Then**, choose what happens to those shifts and enter the hours. For Rain Delay, choose **set minimum to** and enter **4**. Click **Add Condition** again to add more rules (up to 10).  
   ![Then dropdown showing set minimum to, set hours to, and add](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-05-then.jpg?width=597&height=260&name=shift-conditions-05-then.jpg)
6. Optional: turn on **Assign Earn Code**, choose **All Hours** or **Additional Hours**, and select the earn code. For Rain Delay, choose **Additional Hours** and **RT - Regular Time**.  
   ![Assign Earn Code turned on with Additional Hours selected and the earn code list open](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-06-earn-code.jpg?width=597&height=370&name=shift-conditions-06-earn-code.jpg)
7. Choose where the condition is available. New conditions default to **All Divisions** and **All Projects**. To limit it, uncheck **All Projects**, click the **+** button in the Projects field, add the projects you want (here, Baxter Building), and click **Save**. Divisions work the same way.  
   ![Projects picker with Baxter Building added](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-07-projects.jpg?width=520&height=427&name=shift-conditions-07-projects.jpg)
8. Review the form and click **Create**.  
   ![Completed Rain Delay condition form with the Create button highlighted](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-08-completed.jpg?width=420&height=610&name=shift-conditions-08-completed.jpg)
9. The new condition appears in the list with a confirmation message. Each row summarizes the rules in plain language, for example "Less than 4 hrs → Set minimum to 4 hrs", along with the earn code and how many projects and divisions it covers.  
   ![Shift Conditions list showing the new Rain Delay condition and a success message](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-09-created.jpg?width=670&height=188&name=shift-conditions-09-created.jpg)

**Tip:** If you uncheck All Projects without adding a project, the form shows "Select projects or check All Projects" and won't save.

### Manage existing conditions

Use the **⋮** menu on a row to **Edit**, **Duplicate** (creates an editable copy named "... (copy)"), or **Delete** a condition. The **Active** toggle hides a condition from every project without deleting it.

![Row actions menu showing Edit, Duplicate, and Delete](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-10-row-menu.jpg?width=670&height=193&name=shift-conditions-10-row-menu.jpg)

Once a condition has been used on any shift, its hour rules and earn codes are locked to protect past timesheets, and it can't be deleted. You can still rename it, change its description, or change where it's available. To change the rules, duplicate it, update the copy, and turn off **Active** on the original.

### Step 2: Apply a Shift Condition

There are three ways to apply a condition, plus a one-off custom option. The screenshots below use the Baxter Building project timesheet.

### Automatically, on every shift in a project

1. Open the project and go to **Settings → Shift Conditions**. The table lists every active condition available on that project.
2. Turn on **Automatically apply a condition to all shifts** and pick one condition.
3. Click **Save**.

Auto-apply covers Labor shifts punched in on a SmartBarrel device or the mobile app from that point on. It skips Travel and PTO shifts, shifts added by manual entry, and shifts that already exist.

### To a single shift

1. Open the Project, Company, or Master Timesheet.
2. Under the shift's hours, click **Add Shift Condition** and pick a condition. Only conditions available on that project are listed.  
   ![Add Shift Condition menu open under a shift, listing 2/4/8 Show-Up and Call-Out](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-15b-single-menu.jpg?width=632&height=154&name=shift-conditions-15b-single-menu.jpg)
3. Added and Total update right away, and the condition's icon and name show under the shift. In this example, a 1.25-hour call-out shift gets 2.75 added hours for a total of 4. To take it off, open the same menu and choose **Remove Shift Condition**.  
   ![Shift with Call-Out applied: 1.25 worked hours plus 2.75 added equals 4](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-16b-single-result.jpg?width=632&height=88&name=shift-conditions-16b-single-result.jpg)

### To many shifts at once

1. Select the shifts on the timesheet with the checkboxes, then open **Bulk Actions → Apply Shift Condition**.  
   ![Two shifts selected on the timesheet with Bulk Actions open and Apply Shift Condition highlighted](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-17b-bulk-menu.jpg?width=644&height=270&name=shift-conditions-17b-bulk-menu.jpg)
2. Keep **Shift Condition** selected, pick the condition, and click **Apply**. The footer shows how many shifts will be affected. You can apply to up to 500 shifts at a time.  
   ![Apply Shift Condition dialog with Rain Delay selected for 2 shifts](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-18-bulk-modal.jpg?width=606&height=214&name=shift-conditions-18-bulk-modal.jpg)
3. Each selected shift is updated. Shifts that can't take the condition (Travel or PTO, no permission, or the condition isn't available on that project) are skipped and reported back to you.  
   ![Two shifts after bulk applying Rain Delay: 1.5 plus 2.5 and 3 plus 1, both totaling 4](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-19b-bulk-result.jpg?width=632&height=156&name=shift-conditions-19b-bulk-result.jpg)

### Custom Shift Conditions

For a one-time situation that doesn't need its own condition, use **Custom** in the bulk action instead.

1. Select the shift (or shifts) and open **Bulk Actions → Apply Shift Condition**.
2. Choose **Custom** and enter a single rule, for example Any duration → Add 1 hr. Custom adjustments can also be negative.
3. Select an edit reason (required) and click **Apply**.  
   ![Apply Shift Condition dialog with Custom selected: any duration, add 1 hour, reason Forgot](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-20-custom-modal.jpg?width=606&height=274&name=shift-conditions-20-custom-modal.jpg)
4. The shift shows **Custom** as its condition and keeps its existing earn codes. Here an 8-hour shift becomes 9.  
   ![Shift with a Custom adjustment: 8 worked hours plus 1 added equals 9](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-21b-custom-result.jpg?width=632&height=86&name=shift-conditions-21b-custom-result.jpg)

### Common examples

These are common rules that would require a shift condition:

![Shift Conditions list with 2/4/8 Show-Up, Call-Out, and Rain Delay](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-14b-all-conditions.jpg?width=670&height=155&name=shift-conditions-14b-all-conditions.jpg)

### Rain-out: 4-hour minimum

Crews who show up and are sent home for weather are paid at least 4 hours. This is the condition built in Step 1.

- **Rule:** Less than 4 hrs → Set minimum to 4 hrs
- **Earn code:** Additional Hours → RT - Regular Time
- **How to use it:** apply it in bulk to the crew's shifts on the day work was called off.

![Rain Delay condition setup: less than 4 set minimum to 4, Additional Hours paid as RT, Baxter Building](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-11-ex-rain-delay.jpg?width=400&height=453&name=shift-conditions-11-ex-rain-delay.jpg)

| Worked | Added | Total |
| --- | --- | --- |
| 1.5 hrs | 2.5 hrs | 4 hrs |
| 3 hrs | 1 hr | 4 hrs |
| 6 hrs | 0 hrs | 6 hrs |

### 2/4/8 show-up rule

Showing up earns 2 hours, working 2 earns 4, and working 4 earns a full 8.

- **Rule 1:** Less than 2 hrs → Set minimum to 2 hrs
- **Rule 2:** Between 2 and 4 hrs → Set minimum to 4 hrs
- **Rule 3:** At least 4 hrs → Set minimum to 8 hrs
- **Earn code:** none, so the shift keeps its normal earn codes.
- **How to use it:** if the rule applies to everyone on a project, turn on auto-apply in the project's settings so every punched shift gets it.

![2/4/8 Show-Up condition setup with three hour rules on Baxter Building](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-12-ex-248.jpg?width=400&height=453&name=shift-conditions-12-ex-248.jpg)

| Worked | Matching rule | Added | Total |
| --- | --- | --- | --- |
| 0.5 hrs | Less than 2 | 1.5 hrs | 2 hrs |
| 2 hrs | Between 2 and 4 | 2 hrs | 4 hrs |
| 3.75 hrs | Between 2 and 4 | 0.25 hrs | 4 hrs |
| 4 hrs | At least 4 | 4 hrs | 8 hrs |
| 9.5 hrs | At least 4 | 0 hrs | 9.5 hrs |

### Call-out shift: 4-hour minimum

On-call workers who go out are paid at least 4 hours, even for a short job.

- **Rule:** Any duration → Set minimum to 4 hrs
- **Earn code:** Additional Hours → your call-out earn code (this example uses OT - Overtime). Worked time keeps its normal earn codes, and only the added time is paid at the call-out rate.
- **How to use it:** apply it to the individual call-out shift on the timesheet.

![Call-Out condition setup: any duration set minimum to 4, Additional Hours paid as OT, Baxter Building](https://ask.smartbarrel.io/hs-fs/hubfs/shift-conditions-13-ex-call-out.jpg?width=400&height=453&name=shift-conditions-13-ex-call-out.jpg)

Example: a worker is called out and works 1.25 hours. The total is 4 hours: 1.25 at their normal earn code plus 2.75 at the call-out earn code.

### What you see on the timesheet

- **Shifts tab:** each Labor shift shows Hours + Added = Total, with the condition's icon and name underneath. The Added field is read-only and only changes through a condition.
- **Green dot:** appears when the project's auto-apply sets the condition.
- **Productivity tab:** each row shows its total hours. Added hours appear as a small blue number in brackets, for example 8 (4) means 8 hours, 4 of them added. Hover over it to see which condition added them.
- **Earn codes:** always add up to the shift's total.
- **No conditions, no change:** shifts on projects with no active conditions keep the usual layout, so the Company Timesheet can show both layouts side by side.

### Permissions

Three permissions control the feature. Set them under the Shift Conditions and Timesheet groups in your permission templates.

| Permission | Lets a user |
| --- | --- |
| Manage Shift Conditions | Open Company → Shift Conditions to create, edit, duplicate, delete, and activate conditions |
| Apply Shift Conditions | Add, change, or remove a condition on shifts they're allowed to edit (requires timesheet edit) |
| Apply Custom Shift Conditions | Use the Custom option in bulk actions (requires Apply Shift Conditions) |

The usual own-shifts versus all-shifts timesheet permissions still apply. Turning on project auto-apply requires Project Settings edit access, and only the project's general contractor can change it.

### FAQ

**Does a condition change the punch times?**  
No. Punches stay exactly as recorded. The extra time is stored separately as added hours.

**What happens if I edit the punch times?**  
Hours, Added, and Total recalculate using the condition already on the shift.

**Why does Added show 0?**  
Either no rule matches the shift's worked hours, or the worker is still punched in. Added hours are calculated once the shift is closed.

**Why can't I change a condition's rules?**  
Once a condition is used on any shift, its hour rules and earn codes are locked to protect past timesheets. You can still rename it, change its description, or change where it's available. To change the rules, deactivate it and create a new one (Duplicate is the fastest way).

**Why can't I delete a condition?**  
Conditions used on any shift can't be deleted. Turn off **Active** instead to hide it everywhere.

**What happens to existing shifts when I deactivate a condition?**  
They keep their condition and added hours. The condition just can't be picked for new shifts, and project auto-apply stops at the next punch-in.

**What happens when I migrate, split, or merge a shift?**  
The condition and added hours are cleared. After a migrate, the destination project's auto-apply condition is re-applied to punched shifts. Split and merge don't re-apply it.

**Can I apply a condition to Travel or PTO shifts?**  
No. Shift Conditions only apply to Labor shifts.

**Is there a record of who applied a condition?**  
Yes. Creating, editing, deleting, and activating conditions, and applying or removing them on shifts, all appear in the audit log with who did it and when.

- [SmartBarrel Dashboard](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#main-content)

    - [Worker Profile Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#worker-profile-management)
    - [Project Settings](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#project-settings)
    - [Timesheet Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#timesheet-management)
    - [Productivity](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#productivity)
    - [Worker Vs User](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#worker-vs-user)
    - [Crew Management](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#crew-management)
    - [Reports](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#reports)
    - [Company Settings](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#company-settings)
    - [Security](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#security)
    - [PunchFlow and SMS Messages](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#punchflow-and-sms-messages)
    - [Microsoft SSO](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#microsoft-sso)
    - [Unions and Agreements](https://ask.smartbarrel.io/smartbarrel-dashboard?hsLang=en#unions-and-agreements)
- [Device and Solar](https://ask.smartbarrel.io/device-and-solar?hsLang=en)
- [Mobile App](https://ask.smartbarrel.io/mobile-app?hsLang=en#main-content)

    - [Manage the Apps Settings](https://ask.smartbarrel.io/mobile-app?hsLang=en#manage-the-apps-settings)
    - [Using the App](https://ask.smartbarrel.io/mobile-app?hsLang=en#using-the-app)
- [Integrations](https://ask.smartbarrel.io/integrations?hsLang=en#main-content)

    - [Procore Integration](https://ask.smartbarrel.io/integrations?hsLang=en#procore-integration)
    - [CMiC Integration](https://ask.smartbarrel.io/integrations?hsLang=en#cmic-integration)
    - [API](https://ask.smartbarrel.io/integrations?hsLang=en#api)
    - [Viewpoint Vista (App Xchange)](https://ask.smartbarrel.io/integrations?hsLang=en#viewpoint-vista-app-xchange)
    - [Plexxis](https://ask.smartbarrel.io/integrations?hsLang=en#plexxis)
    - [Foundation](https://ask.smartbarrel.io/integrations?hsLang=en#foundation)
    - [BuildOps](https://ask.smartbarrel.io/integrations?hsLang=en#buildops)
    - [Spectrum](https://ask.smartbarrel.io/integrations?hsLang=en#spectrum)
    - [BambooHR](https://ask.smartbarrel.io/integrations?hsLang=en#bamboohr)
- [Feature Highlights](https://ask.smartbarrel.io/feature-highlights?hsLang=en)
- [Productivity](https://ask.smartbarrel.io/productivity?hsLang=en)

- Home
- Products
- Pricing
- Blog
- Company

[![Chill listening crop-3](https://ask.smartbarrel.io/hs-fs/hubfs/SMARTBARREL-Logo-png-1.png?width=42&height=24&name=SMARTBARREL-Logo-png-1.png "Chill listening crop-3")](https://smartbarrel.io)

Copyright © 2026, SmartBarrel