Already a NinjaOne customer? Log in to view more guides and the latest updates.

NinjaOne Ticketing: Automation Triggers and Templates

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.

The NinjaOne platform is compliant with the Health Insurance Portability and Accountability Act of 1996 (HIPAA); please submit a request to your account manager for a signed Business Associate Agreement (BAA). It is best practice to exercise proactive security measures, use Simple Mail Transmission Protocol (SMTP) servers to transmit ticket data, and ensure sufficient protocols are in place to maintain HIPAA compliance in all actions.

Select a category to learn more:

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).

ticketing_triggers and templates.png

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 TypeDescription or Purpose
Event-basedThese 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-basedThese 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 TypeDescription or Purpose
Activity rulesYou 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 rulesConfigure 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 rulesThese 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 templatesThe 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:

  1. Navigate to Administration → Apps → NinjaOne Ticketing.
Figure 2: Access the NinjaOne Ticketing application (click to enlarge)
  1. 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

To create an event-based rule, perform the following steps:

  1. Open the Event-Based tab and click Add to begin.
  2. Use the toggle to activate the condition and enter a unique identifier into the Name field.
event-based_general.png
Figure 3: Event-based ticketing automation → General information → Enable (click to enlarge)
  1. Open the Conditions tab.
  2. 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.
event-based_conditions.png
Figure 4: Event-based ticketing automation → Conditions (click to enlarge)
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 in both "all" and "any," and the ticket meets the "any" conditions but not the "all" conditions, then NinjaOne will not apply the automation.

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.

  1. 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.
  2. Click Save.
event-based_actions.png
Figure 5: Event-based ticketing automation → Add actions to trigger when conditions are met (click to enlarge)

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:

  1. Navigate to the Event-based triggers tab in the NinjaOne Ticketing app
  2. Click the Manage Priority button
Figure 6: The Manage Priority button for event-based triggers (click to enlarge)
  1. 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.
Figure 7: The Manage event-based trigger priority dialog window

Create Time-based Ticketing Automations

To create a time-based rule, perform the following steps:

  1. Open the Time-based tab and click Add to begin.
  2. Enter a name and optional description.
  3. 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.
The more conditions you add in "all," the narrower the requirements will be for that ticket to be routed to the board. If you have conditions in both "all" and "any," and the ticket meets the "any" conditions but not the "all" conditions, then NinjaOne will not apply the automation.

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.

  1. 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.

Figure 8: The Event-Based trigger table, including the Last triggered field (click to enlarge)

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:

  1. Select Templates → Activity rules and click Add to begin.
  2. 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.
  3. 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.

edit template.png
Figure 9: Select the template you would like to change, and the options will appear (click to enlarge)

Condition Rule

Condition rules automate the handling of incoming tickets triggered by NinjaOne conditions.

A default condition rule is automatically created for all NinjaOne Ticketing instances. This default condition rule can be edited but not deleted.
  1. Open the Templates → Condition rule tab and click Add to begin.
  2. In the General section, use the toggle switches to activate the condition. Assign a name to the new condition rule.
  3. 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.
  4. 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.
condition rule automation_condition reset.png
Figure 10: Condition rule template automation → Condition reset (click to enlarge)
  1. 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.
  2. Click Save.

Response Template

The response template automation provides a quick response to common tickets.

  1. Open the Templates → Response template tab and click Add to begin.
  2. Use the toggle switches to activate the condition and assign a unique identifier to the Name.
  3. 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.
  4. Click Save.

Script Rule

Script rules automate the handling of incoming tickets triggered by scheduled scripts.

  1. Open the Templates → Script rules tab and click Add to begin.
  2. Use the toggle switches to activate the condition and give the Name a unique identifier.
  3. 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.

Figure 11: Enable or delete automations (click to enlarge)

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?

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:

FAQ

Next Steps