Topic
This article explains how to create automations for NinjaOne Ticketing.
Environment
NinjaOne Ticketing
Description
Ticketing automations can streamline workflows by automatically assigning tags, users, priorities, and more. Some automations update tickets when triggered by the specified "ANY" or "ALL" conditions. When the selected or combined conditions are met, a ticket is automatically updated with the criteria that were configured for that automation.
Select a category to learn more:
- How Ticketing Automation Works
- Create Automation Rules for the Ticketing Application
- Frequently-Asked Questions (FAQ)
- Additional Resources
How Ticketing Automation Works
You can configure automation for NinjaOne Ticketing by using the Triggers and Templates tabs on the application configuration page (Administration → Apps → NinjaOne Ticketing).

Figure 1: Ticketing triggers and templates (click to enlarge)
The two main types of automations are Trigger automations and Template automations.
- Trigger automations start when specific conditions are met and then fire the automation in order of priority.
- Template automations are triggered upon ticket creation to ensure the ticket contains the proper fields and to trigger other automations or workflows as needed. Response templates are also held here, which is how you create canned responses to commonly received questions.
The following tables describe the different types of Trigger and Template automations.
Triggers
| Automation Type | Description or Purpose |
|---|---|
| Event-based | These automation rules trigger when any or all of the specified conditions are met. Conditions can include actions (ticket created), business hours, ticket type or status, assigned organization, associated custom fields, and more. The NinjaOne platform executes event-based triggers in the order they appear in the list. To learn more about the execution order of event-based triggers, refer to Manage the Execution Order of Event-based Triggers. |
| Time-based | These automations are triggered by event- and time-related conditions. This option can be used to enable notifications for tickets that have been open and are not meeting timelines. The more conditions you add under ALL, the narrower the requirements will be for that ticket to be routed to the board. If you have conditions under both ALL and ANY, and the ticket meets the ANY conditions but not the ALL conditions, then the ticket will not be routed to the board. |
Templates
| Automation Type | Description or Purpose |
|---|---|
| Activity rules | You can use these automation rules for system activities. When a ticket is created, it will use the fields configured for the selected ticketing form. Refer to Device and System Activity Notification Feed for more information about using ticketing rules when managing system activities. |
| Condition rules | Configure the settings to be used for ticket creation and updates triggered by conditions. When a ticket is created, it will use the fields configured for the selected ticketing form. For this automation, you can select what happens when the condition is reset or re-triggered. Refer to Policies: Condition Configuration for more information about using ticketing rules when configuring conditions. |
| Script rules | These automation rules can be used for scheduled automations at the policy level. When a ticket is created, it will use the fields configured for the selected ticketing form. Refer to Policies: Scheduled Automations for more information about using ticketing rules with scheduling automations. |
| Response templates | The response template automation creates a predefined response template to quickly address common tickets. You can use it to add a comment or take another action on a ticket. Response templates can be added from the ticket page. Refer to NinjaOne Ticketing: Ticket Handling for more information about using response templates. |
Create Automation Rules for the Ticketing Application
To configure ticketing automations, perform the following steps:
- Navigate to Administration → Apps → NinjaOne Ticketing.

- Use either the Triggers or Templates tabs to create ticketing automations. Select a category to see instructions based on your automation needs:
Ticketing Automations: Triggers
Select the action you'd like to perform:
- Create Event-based Ticketing Automations
- Manage the Execution Order of Event-based Triggers
- Create Time-based Ticketing Automations
- Check When a Trigger Last Fired
Create Event-based Ticketing Automations
To create an event-based rule, perform the following steps:
- Open the Event-Based tab and click Add to begin.
- Use the toggle to activate the condition and enter a unique identifier into the Name field.

- Open the Conditions tab.
- Click Add condition in either Meets all conditions or Meets any conditions classifications. Once you define the conditions, you can select the action to be taken for that criterion in the Actions tab (which we will explain in Step 5). You will also see options to add custom fields that were configured for automation (refer to NinjaOne Ticketing: Configure Custom Fields and Forms for Tickets for more information). For a description of each condition offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.

Note that tickets can exist on multiple boards simultaneously, and if the conditions for a specific board are no longer met, then it will be removed from that board.
- Open the Actions tab and add at least one action to perform when the conditions are met. For a description of each action offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
- Click Save.

Manage the Execution Order of Event-based Triggers
The NinjaOne platform evaluates event-based triggers in list order, starting with the trigger in position 1. It runs the actions of each trigger in that order. When a ticket update meets the conditions of more than one trigger, the position of each trigger in the list determines the order in which the triggers run.
- A rank number on each row of the Event-Based tab shows the position of the trigger. You can read the execution order without counting rows.
- A deactivated trigger keeps its position in the list but does not run. After you activate the trigger again, its position does not change.
- When triggers are created, they are automatically added to the end of the priority list.
Complete the following steps to change the order of event-based triggers:
- Navigate to the Event-based triggers tab in the NinjaOne Ticketing app
- Click the Manage Priority button

- Drag and drop the triggers that appear up and down the list in the Manage event-based trigger priority window that appears to change the priority. When you're done, click Update to commit the changes.

Create Time-based Ticketing Automations
To create a time-based rule, perform the following steps:
- Open the Time-based tab and click Add to begin.
- Enter a name and optional description.
- In Conditions, click Add under either the ALL or ANY classifications to determine what tickets will be routed to the board. For a description of each condition offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
Note that tickets can exist on multiple boards simultaneously, and if the conditions for a specific board are no longer met, it will be removed from that board.
- Next, open the Actions tab and add at least one action to perform when the condition is met. Then, click Save. For a description of each action offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
- Add tags and Add CC will publish new tags and contacts in addition to the ones created with the ticket. In contrast, Set tags and Set CC will clear all current tags and contacts and publish the new tags or contacts.
- Send Notification enables users to have the automation send a notification to a configured Notification Channel.
Check When a Trigger Last Fired
The tables on the Event-Based and Time-based tabs include a Last triggered column that updates each time the trigger completes. Use this information to find the triggers that you use and to confirm that a trigger fired when you expected.

Ticketing Automations: Templates
Select which type of template automation you would like to create for NinjaOne Ticketing:
Activity Rule
To create an activity rule, perform the following steps:
- Select Templates → Activity rules and click Add to begin.
- When creating or editing a new activity rule, several options can be configured in the Ticket creation tab. For a description of each option, refer to NinjaOne Ticketing: Automation Configuration Definitions.
- After you've completed the configuration, click Save.
Once saved, you can select the checkbox next to the template name to edit it, set it as the default (if applicable), or delete it. You cannot delete a template that is set as the default.

Condition Rule
Condition rules automate the handling of incoming tickets triggered by NinjaOne conditions.
- Open the Templates → Condition rule tab and click Add to begin.
- In the General section, use the toggle switches to activate the condition. Assign a name to the new condition rule.
- Configure the settings in the Ticket creation tab. An asterisk (*) indicates that the field is required. For a description of each option offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
- Open the Condition Reset tab and configure the ticket behavior when the NinjaOne condition is reset. Select the new status for the ticket in this case, and any time that should be automatically applied to the ticket timer.

Open the Condition Retrigger tab and configure the ticket behavior when the NinjaOne condition re-triggers after being reset.
The Action field determines whether to append to the existing ticket or open a new one, and also specifies the status for the appended or new ticket.- Click Save.
Response Template
The response template automation provides a quick response to common tickets.
- Open the Templates → Response template tab and click Add to begin.
- Use the toggle switches to activate the condition and assign a unique identifier to the Name.
- In the Actions tab, click Add action to select the action this response template will execute. For a description of each action offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
- Click Save.
Script Rule
Script rules automate the handling of incoming tickets triggered by scheduled scripts.
- Open the Templates → Script rules tab and click Add to begin.
- Use the toggle switches to activate the condition and give the Name a unique identifier.
- Configure the settings in the Ticket creation tab. An asterisk (*) indicates that the field is required. For a description of each option offered in the drop-down menu, refer to NinjaOne Ticketing: Automation Configuration Definitions.
Activate or Deactivate Automations in Bulk
Technicians with access to the Ticketing permission for Administrative Actions can activate or deactivate automations in bulk. For more information about permissions, refer to NinjaOne Platform: Permission Settings for End Users.
To activate or deactivate automations in bulk, select the checkboxes next to all automations you want to manage and then use the buttons that appear to activate or deactivate them as needed.

Frequently-Asked Questions (FAQ)
For more frequently asked questions, refer to NinjaOne Ticketing: FAQ.
- Is there a way to modify the messaging on automated responses in the ticketing system?
- How can I automate tickets for patch failures?
- How can I receive reminders about outstanding tickets?
- How can I make sure that we are notified if an unmatched sender creates a ticket?
- If a triggered condition creates a ticket, does it automatically close when the condition is no longer met?
- Which NinjaOne alerts can be configured to create tickets?
- Why are some incoming emails not creating new tickets?
- Will ticket boards and ticket counts be automatically refreshed when a ticket is created, updated, or deleted?
Is there a way to modify the messaging on automated responses in the ticketing system?
You can use event-based automations to send an email with a customized message. If using this method, we recommend setting the Notify Technician field on the system/policy activity to "No" to prevent duplicate responses.
How can I automate tickets for patch failures?
For Microsoft Windows patches, you can use the "Windows Patch Management" activity in Administration → Policies → Activities.
How can I receive reminders about outstanding tickets?
You can use time-based automations to send notifications when a ticket has been open or paused for a set period.
How can I make sure that we are notified if an unmatched sender creates a ticket?
You can use an event-based automation or a pending email notification in System Activities.
If a triggered condition creates a ticket, does it automatically close when the condition is no longer met?
Yes, but only if a condition rule was set to close the ticket.
Which NinjaOne alerts can be configured to create tickets?
Currently, NinjaOne conditions and scheduled scripts can be configured to create tickets.
Why are some incoming emails not creating new tickets?
When NinjaOne Ticketing receives an email, NinjaOne determines whether the sender email address is associated with a NinjaOne user (either a technician or an end user) or a contact, or whether that email address or domain is included in any of the configured allow or block lists. If the email address does not meet any of these criteria, then the email will be placed into the Pending Emails board rather than immediately creating a ticket.
To create tickets, the email must be approved, at which point the sender's email address will be added as a contact. From this point forward, any future emails from that email address will automatically create tickets (since the address is now recognized as a contact).
Additionally, ensure the sender email address is not registered as a forwarding address within NinjaOne Ticketing. If it is, the email will be ignored to avoid an email feedback loop of automatic replies and will not create a ticket.
Will ticket boards and ticket counts be automatically refreshed when a ticket is created, updated, or deleted?
Yes. Ticket board counts will automatically be refreshed when a ticket is created, updated, or deleted.
Additional Resources
For more information about NinjaOne Ticketing and automation, see the following articles: