---
title: How to trigger an alert on a specific shift or crew?
description: Step 1 - In the alert, go to the trigger you created Step 2 - Click the Conditional Expression tab and toggle ON 'Enable Conditional Expression'  Step 3 - Drag in the 'Shift Data' from the right-hand
---

[Skip to content](https://support.ofsystems.com/how-to-trigger-an-alert-on-a-specific-shift-or-crew#main-content)

![OFS\_Circle.png\]](https://support.ofsystems.com/hs-fs/hubfs/OFS_Circle.png?height=45&name=OFS_Circle.png)

- [OFS Customer Portal](https://support.ofsystems.com/)
- [Main Website](https://ofsystems.com/)
- [Contact Us](https://www.ofsystems.com/contact-us?)
- [Service Portal](https://ofsystems.atlassian.net/servicedesk/customer/portal/1)

Open main navigation

Close main navigation

- [OFS Customer Portal](https://support.ofsystems.com/)
- [Main Website](https://ofsystems.com/)
- [Contact Us](https://www.ofsystems.com/contact-us?)
- [Service Portal](https://ofsystems.atlassian.net/servicedesk/customer/portal/1)

 Welcome to the OFS Customer Portal

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

1. [OFS Customer Portal](https://support.ofsystems.com/?hsLang=en)
2. [How To Questions](https://support.ofsystems.com/how-to-questions?hsLang=en)
3. [Flow - Conditional Expression & Triggers](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-conditional-expression-triggers)

# How to trigger an alert on a specific shift or crew?

## Add a conditional expression to a trigger so the alert only fires when a particular crew or operator is logged in, rather than on every shift.

#### **Step 1 — Open the trigger**

In the alert, go to the **Triggers** tab and open the trigger you created. Double-click the trigger row to open it.

#### **Step 2 — Turn on the conditional expression**

Click the **Conditional Expression** tab and toggle **Enable Conditional Expression** to **ON**.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Oct-23-2024-11-41-42-2229-PM.png?width=429&height=192&name=image-png-Oct-23-2024-11-41-42-2229-PM.png)

#### **Step 3 — Drag in Shift Data**

Drag **Shift Data** in from the right-hand side of the expression builder.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Oct-23-2024-11-43-48-0397-PM.png?width=527&height=222&name=image-png-Oct-23-2024-11-43-48-0397-PM.png)

#### **Step 4 — Choose the field**

Click the **Shift Data** chip and select `crewName` from the drop-down.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Oct-23-2024-11-42-33-0540-PM.png?width=438&height=212&name=image-png-Oct-23-2024-11-42-33-0540-PM.png)

#### **Step 5 — Add the equals operator**

Drag the **=** sign in from the **Math Operators** menu.

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Oct-23-2024-11-44-51-0979-PM.png?width=560&height=358&name=image-png-Oct-23-2024-11-44-51-0979-PM.png)

#### **Step 6 — Enter the crew name**

Click the `0` on the right-hand side of the expression and type the crew name in its place, for example `Day`. The finished expression reads:

```
shift["crewName"]=="Day"
```

![](https://support.ofsystems.com/hs-fs/hubfs/image-png-Oct-23-2024-11-47-48-9586-PM.png?width=465&height=123&name=image-png-Oct-23-2024-11-47-48-9586-PM.png)

#### **Step 7 — Save**

Click **Update**, then **Save** on the page. The dialog's own button stages the change; the page-level **Save** commits it.

---

#### **Test it**

Log a shift in with the crew named in the condition and confirm the alert fires. Log a shift in with a different crew and confirm it stays quiet. Analytics records which condition matched under **Trigger Match**, so you can confirm the rule did the work.

#### **Adapting it to your own shifts**

- To target an individual operator rather than a crew, select `userName` instead of `crewName` at Step 4.
- To cover more than one crew, use the **OR** operator: `shift["crewName"]=="Day" || shift["crewName"]=="Afternoon"`.
- To exclude a crew rather than target one, use **≠** instead of **=**.

- [Getting Started](https://support.ofsystems.com/getting-started?hsLang=en#main-content)

    - [Console: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#console-the-basics)
    - [Analytics: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#analytics-the-basics)
    - [Fusion Manager: The Basics](https://support.ofsystems.com/getting-started?hsLang=en#fusion-manager-the-basics)
    - [OFS-Flow Training : The Basics](https://support.ofsystems.com/getting-started?hsLang=en#ofs-flow-training-the-basics)
    - [OFS-Go](https://support.ofsystems.com/getting-started?hsLang=en#ofs-go)
    - [MayvnAI](https://support.ofsystems.com/getting-started?hsLang=en#mayvnai)
- [Help & Support](https://support.ofsystems.com/help-support?hsLang=en#main-content)

    - [Troubleshooting](https://support.ofsystems.com/help-support?hsLang=en#troubleshooting)
    - [OFS in a Box](https://support.ofsystems.com/help-support?hsLang=en#ofs-in-a-box)
    - [Routers](https://support.ofsystems.com/help-support?hsLang=en#routers)
    - [PLCs](https://support.ofsystems.com/help-support?hsLang=en#plcs)
- [Success with MayvnAI](https://support.ofsystems.com/success-with-mayvnai?hsLang=en)
- [Training Videos](https://support.ofsystems.com/training-videos?hsLang=en#main-content)

    - [Operator Console](https://support.ofsystems.com/training-videos?hsLang=en#operator-console)
    - [OFS Analytics](https://support.ofsystems.com/training-videos?hsLang=en#ofs-analytics)
    - [Fusion-Manager](https://support.ofsystems.com/training-videos?hsLang=en#fusion-manager)
    - [OFS-Flow](https://support.ofsystems.com/training-videos?hsLang=en#ofs-flow)
    - [OFS-Go](https://support.ofsystems.com/training-videos?hsLang=en#ofs-go)
- [How To Questions](https://support.ofsystems.com/how-to-questions?hsLang=en#main-content)

    - [Administration](https://support.ofsystems.com/how-to-questions?hsLang=en#administration)
    - [Operator Console](https://support.ofsystems.com/how-to-questions?hsLang=en#operator-console)
    - [Analytics](https://support.ofsystems.com/how-to-questions?hsLang=en#analytics)
    - [Fusion Manager](https://support.ofsystems.com/how-to-questions?hsLang=en#fusion-manager)
    - [Fusion Manager - Alerts & Services](https://support.ofsystems.com/how-to-questions?hsLang=en#fusion-manager-alerts-services)
    - [Flow](https://support.ofsystems.com/how-to-questions?hsLang=en#flow)
    - [Flow - Validations](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-validations)
    - [Flow - Conditional Expression & Triggers](https://support.ofsystems.com/how-to-questions?hsLang=en#flow-conditional-expression-triggers)
    - [APIs](https://support.ofsystems.com/how-to-questions?hsLang=en#apis)
- [FAQs](https://support.ofsystems.com/faqs?hsLang=en#main-content)

    - [Operator Console](https://support.ofsystems.com/faqs?hsLang=en#operator-console)
    - [Fusion Manager](https://support.ofsystems.com/faqs?hsLang=en#fusion-manager)
    - [Analytics](https://support.ofsystems.com/faqs?hsLang=en#analytics)
    - [OFS-Flow](https://support.ofsystems.com/faqs?hsLang=en#ofs-flow)
- [Case Studies](https://support.ofsystems.com/case-studies?hsLang=en#main-content)

    - [Mavyn AI](https://support.ofsystems.com/case-studies?hsLang=en#mavyn-ai)
- [OFS Guides](https://support.ofsystems.com/ofs-guides?hsLang=en)
- [Webinars](https://support.ofsystems.com/webinars?hsLang=en)

[![](https://support.ofsystems.com/hs-fs/hubfs/Logo%20Medium_no%20words.png?width=128&height=68&name=Logo%20Medium_no%20words.png)](http://ofsystems.com)

Operations Feedback Pty Ltd

7/627 Chapel St, South Yarra, VIC 3123  
+61 3 8684 9859

<https://www.ofsystems.com/> <https://www.linkedin.com/company/operations-feedback-systems/> [mailto:support@ofsystems.com](mailto:support@ofsystems.com)

Copyright © 2025, Operations Feedback Systems Pty Ltd.