Triggers for tickets
31 min
Criado por Knowledge Engineering Team em 03/12/2020 18:37
Atualizado por Knowledge Engineering Team em 16/03/2021 17:36

On this page

Configuring trigger actions

Configuring trigger conditions

 

Triggers of the type Tickets are the most flexible, which make them the primary automation tool in Movidesk. If you have not read the Introduction to triggers article, we strongly recommend reading that article first. It covers basic concepts and terminology that are necessary for understanding how to set up triggers.

 

Configuring trigger actions

Use trigger actions to define what you want to happen when the appropriate trigger conditions are met and the trigger fires.

You can add multiple actions to a single trigger, which will all be executed when the trigger fires. The actions will be executed in the order they are listed in the trigger, with the exception of the Change status action, which will always be executed last. Select the ✚ icon on the right of the Action line to add new actions, or the trashcan icon to delete actions.

Clipboard

Note Sometimes an action may not be executed when a trigger fires, such as sending an email to the assigned agent if the Assigned agent is blank. In this case, the system will still attempt to execute other actions in the trigger.

 

Consider the order of actions on a trigger to avoid any conflicts that may prevent an action from being executed. For example, if the Change assigned agent action assigns the ticket to an agent, a Change status action will not be executed if the selected status is not a valid status for that agent.

 

Recursive triggers

Trigger actions will cause triggers to be re-evaluated and can lead to triggers firing in a repeating pattern, causing a Trigger recursion.

A simple way to avoid recursion is to use Tags. You can add specific tags as one of your trigger actions and combine that with a condition that checks for the absence of those tags. This way the trigger will only fire once, as the newly added tag will prevent the ticket from firing a second time in a row.

Warning

Warning The system will disable a recursive trigger after a few cycles of the recursion. You will need to update the trigger conditions and re-enable it before the system will evaluate and fire the trigger.

 

Trigger actions

Below is an overview of all available actions that can be executed by triggers with Ticket as their ticket type:

Action

Description

Change ticket type

Select whether to change the ticket type to Public or Internal

Set requester

Select whether to set the requester as the signed-in user (must have a Profile type of Customer), or select a specific customer

Change status

Select a status, and a reason if applicable

Change parent ticket status

Select a status, and a reason if applicable, for the ticket’s parent ticket

Will not be executed if the ticket does not have a parent ticket

Change service

Select a service

If the service is configured to automatically execute a macro, the trigger will not cause the macro to be executed

Change category

Select a category

Change priority

Select a priority

Change assigned agent

Select who to set as the Assigned agent:

        • Signed-in agent
        • Previous assigned agent
        • Select a specific agent or team

You can also choose to clear the current assigned agent by selecting Blank

Set subject

Enter a new subject for the ticket

Add tags

Select tags to add to the ticket

Set tags

Select tags to add to the ticket

Will remove any current tags and then add the selected tags

Remove all tags

Removes all tags from the ticket

Remove tags

Select tags to remove from the ticket

Create child ticket

Creates a child ticket

You can additionally:

        • Select a macro to execute on the child ticket
        • Select whether the tickets should be dependent
        • Select which notes to copy to new ticket

Change note type

Select whether to change the note type of the last note to Public or Internal

Add note

Enter the text for a new note, which can include Placeholders, and select the note type.

Also select one of the following to be listed as the note author:

  • Ticket requester
  • Assigned agent
  • Ticket creator
  • System as the author
  • Select a specific user

Send message

Enter the subject and body of the in-system message, which can include Placeholders

Select one of the following as the sender:

  • Assigned agent
  • Ticket creator
  • System as the message author
  • Select a specific agent

Also select one or more of the following as the addressees:

  • Ticket creator
  • Ticket creator, requesters, and assigned agents
  • Assigned agent
  • Assigned agent's supervisor
  • Parent ticket's assigned agent
  • Super approvers
  • Ticket approvers
  • Select a specific agent

Send email

Select one of the following as the sender:

  • Original recipient
    • Support email account that received the email which was imported as the ticket
  • Access profile email account - Requester
    • Default support email account in the ticket requester’s access profile
  • Access profile email account - Assigned agent
    • Default support email account in the assigned agent’s access profile
  • Default Movidesk email account
  • Select specific support email account

Also select one or more of the following as the addressees:

  • Select specific addressee
    • Enter an email address
  • Select specific team
    • Select to email all agents in the team
  • Select specific user
  • Ticket CC
    • Select to email all addresses on the ticket’s CC
  • Ticket requesters
  • Requesters' supervisors
  • Requester organization's supervisor
  • Ticket creator
  • Ticket creator, requesters, and assigned agents
  • Assigned agent
  • Assigned agent's supervisor
  • Parent ticket's assigned agent
  • Super approvers
  • Ticket approvers
  • Billing agreement customers
    • Select to email all customers listed in the billing agreement associated with the ticket

Also select whether to email an addressee if they were the ones that caused the trigger to fire

Enter the subject and body of the email, both of which can include Placeholders

Update custom field values

Select a display rule to update the values of the associated custom fields.

Be careful, as leaving a custom field blank will clear that field.

Add assets

Select assets to add to the ticket

Remove assets

Select assets to remove from the ticket

Set assets

Select assets to add to the ticket

Will remove any current assets and then add the selected assets

Trigger webhook

Enter a URL to send a JSON data packet with ticket information

See the Using webhooks article for more information

Add CC

Select specific users or enter email addresses to add to the ticket's CC

Remove CC

Select specific users or enter email addresses to remove from the ticket's CC

Set calendar event participant

Select users to add as participants to all calendar events linked to the ticket

Will remove any current participants and then add the selected participants

Add note tags

Select tags to add to the ticket note

Set note tags

Select tags to add to the ticket note

Will remove any current note tags and then add the selected tags

Remove note tags

Select tags to remove from the ticket note

 

 

Configuring trigger conditions

Please reference the Introduction to triggers article for information on how to configure trigger conditions.

 

Watchpoints

When configuring trigger conditions there are a few watchpoints that are worth keeping in mind:

  • Be mindful of which operator you select when using the *Updated to and *Updated from operators in the second column of the condition. *Updated to should be used when the trigger should fire after the Property in the first column is changed so that it now equals the Value in the third column. On the other hand, *Updated from should be used to fire the trigger when the Property changes so that it is no longer equal to the Value.
  • If related tickets are dependent, a trigger cannot change the parent ticket base status to Resolved, Canceled, or Closed until the child ticket has been resolved or canceled.
  • Use the “Note–any” properties carefully, as they will evaluate all notes in the ticket. The condition will be met if any of the notes in the ticket meet the condition.

 

Trigger properties

Below is a list of all available properties for triggers with Ticket as their trigger type, which can be selected on the first column of the trigger’s conditions. The list also includes observations about properties that warrant additional explanation.

Property

Observations

Custom field properties

A new property will become available whenever you create a custom field for Tickets or People. You can find these easily by entering the custom field name to search Property.

Operators and values available to these new Properties will vary depending on the type of field. For example, a custom field with the type Date will have different operators than a custom field with the type Multiple selection.

*Ticket » Primary events and channels

Allows the selection of operators for key ticket events, such as the ticket being created or updated.

The Created by other Movidesk instance operator is only applicable if you have integrated two Movidesk instances. See the Integrating two instances of Movidesk article for more information.

Ticket » Approvals and recurrence

 

Ticket » FCR and reopening history

 

Ticket » Chat conclusion

The Abandoned operator denotes chats that were closed by the customer while still waiting in queue.

Ticket » Subject

 

*Ticket » Status

Can be used to create time thresholds. Note that the value for a time threshold must be a full number of hours (integer).

*Ticket » Base status

Can be used to create time thresholds. Note that the value for a time threshold must be a full number of hours (integer).

*Ticket » Reason

Can be used to create time thresholds. Note that the value for a time threshold must be a full number of hours (integer).

*Ticket » Requester

 

Ticket » Requester » Customer or agent

In cases where a user is registered with both the Customer and Agent profile types selected, this property will be consider them an Agent.

Ticket » Requester » Type

Use to check if the ticket requester was registered with a Type of User, Company, or Department.

Ticket » Requester » Access profile

 

Ticket » Requester » Country

 

Ticket » Requester » State

 

Ticket » Requester » City

 

Ticket » Requester » Address line 2

 

Ticket » Requester » Role

 

Ticket » Requester » Supervisor

 

Ticket » Requester » Classification

 

Ticket » Requester » Organization

Enter the organization name to search for an organization to add as the Value.

Ticket » Requester » Organization » Supervisor

 

Ticket » Requester » Organization » Role

 

Ticket » Requester » Organization » Classification

 

Ticket » Creator

 

Ticket » Creator » Organization

Enter the organization name to search for an organization to add as the Value.

Ticket » Creator » Team

 

Ticket » Creator » Customer or agent

In cases where a user is registered with both the Customer and Agent profile types selected, this property will be consider them an Agent.

Ticket » Creator » Type

Use to check if the ticket creator was registered with a Type of User, Company, or Department.

Ticket » Creator » Access profile

 

Ticket » Creator » Country

 

Ticket » Creator » State

 

Ticket » Creator » City

 

Ticket » Creator » Address line 2

 

Ticket » Creator » Role

 

Ticket » Creator » Supervisor

 

Ticket » Creator » Classification

 

*Ticket » Service

Compares only against the exact service selected on the ticket, ignoring other levels in the Service catalog.

For example, let’s look at a scenario where there is a first level service “Financial module” and a second level service under it of “General ledger”. If a condition is created with Equal to as the Operator and “Financial module” as the Value:

  • A ticket with “Financial module” in Service would meet this condition.
  • A ticket with “General ledger” in Service would not meet this condition, even though “Financial module” is part of the hierarchy for this service.

*Ticket » Service—1st Level

Compares against the service in the first level of the Service catalog from the service selected on the ticket.

First level services are those that do not have any other services above them in the Service catalog.

Using the same example scenario we saw for the *Ticket » Service property:

  • A ticket with “Financial module” in Service would meet this condition.
  • A ticket with “General ledger” in Service would also meet this condition, because “Financial module” is the first level in the hierarchy for this service.

*Ticket » Service—2nd Level

Compares against the service in the second level of the Service catalog from the service selected on the ticket.

Second level services are those that have a single service above them in the Service catalog.

*Ticket » Service—3rd Level

Compares against the service in the third level of the Service catalog from the service selected on the ticket.

Third level services are those that have two services above them in the Service catalog.

*Ticket » Resolution due date

You can create time thresholds using the *Time remaining to due date (%) and *Time overdue (%) operators. Note that Value for these operators must be a whole percentage (no decimals).

For example, if we have a five hour SLA target and want to set up a condition to fire one hour before the due date, we would select *Time remaining to due date (%) as the operator and calculate:

1 hour threshold / 5 hour target = 0.2

Which gives us 20% to enter in Value.

The *Time remaining to due date (%) and *Time overdue (%) operators will only trigger once per ticket, unless the ticket’s due date is updated.

*Ticket » First-response due date

You can create time thresholds using the *Time remaining to due date (%) and *Time overdue (%) operators. Note that Value for these operators must be a whole percentage (no decimals).

For example, if we have a five hour SLA target and want to set up a condition to fire one hour before the due date, we would select *Time remaining to due date (%) as the operator and calculate:

1 hour threshold / 5 hour target = 0.2

Which gives us 20% to enter in Value.

The *Time remaining to due date (%) and *Time overdue (%) operators will only trigger once per ticket, unless the ticket’s due date is updated.

*Ticket » SLA policy

 

*Ticket » SLA policy » Rule

 

Ticket » Opened by web form

 

*Ticket » Assignee

If a team is selected in Value, the property will also consider any agents from that team when being evaluated.

For example, if John is part of the team “Admins” and a condition is created with Equal to as the Operator and “Admins” as the Value:

  • A ticket with the “Admins” team selected in Assigned agent  would meet this condition.
  • A ticket with John selected in Assigned agent  would meet this condition, as John is part of the “Admins” team.

Ticket » Assignee » Team or agent

Use to check whether Assigned agent is a user or a team.

You can use this property in combination with *Ticket » Assignee to evaluate if a ticket has been assigned to a team, but not yet assigned to a specific agent.

*Ticket » Assigned agent » Team

Requires a specific user to be selected in Assigned agent. This property will be considered blank if the ticket is assigned to a team but not a specific user.

*Ticket » Assigned team

Does not require a specific user to be selected in Assigned agent.

Ticket » Assigned agent » Type

Use to check if the agent assigned to the ticket was registered with a Type of User, Company, or Department.

Ticket » Assigned agent » Access profile

 

Ticket » Assigned agent » Country

 

Ticket » Assigned agent » State

 

Ticket » Assigned agent » City

 

Ticket » Assigned agent » Address line 2

 

Ticket » Assigned agent » Role

 

Ticket » Assigned agent » Supervisor

 

Ticket » Assigned agent » Classification

 

*Ticket » Category

 

*Ticket » Priority

 

*Ticket » Tag

 

*Ticket » Sequence number

 

*Ticket » Type

 

Ticket » Receiving email account

Use to check which support email account received the original email—which was imported and created the ticket.

Ticket » Chat widget

 

Ticket » Chat group

 

Ticket » Date opened

 

Ticket » Date resolved

 

Ticket » Date canceled

 

Ticket » Date closed

 

*Parent ticket » Status

 

*Parent ticket » Base status

 

*Parent ticket » Reason

 

Ticket » Number of notes

 

Ticket » Number of public notes

 

Ticket » Number of internal notes

 

Ticket » Number of child tickets

 

*Note–any » Primary events

 

Note–any » Type

 

Note–any » Description

 

Note–any » Date

 

Note–any » Creator

 

Note–any » Creator » Organization

Enter the organization name to search for an organization to add as the Value.

Note–any » Creator » Team

 

Note–any » Creator » Customer or agent

In cases where a user is registered with both the Customer and Agent profile types selected, this property will be consider them an Agent.

Note–any » Creator » Type

Use to check if the creator of the note was registered with a Type of User, Company, or Department.

Note–any » Creator » Access profile

 

Note–any » Creator » Country

 

Note–any » Creator » State

 

Note–any » Creator » City

 

Note–any » Creator » Address line 2

 

Note–any » Creator » Role

 

Note–any » Creator » Supervisor

 

Note–any » Creator » Classification

 

Note–any » Contains attachments

 

Note–any » Importing email account

 

*Note–most recent » Primary events

Can be used to create time thresholds. Note that the value for a time threshold must be a full number of hours (integer).

Note–most recent » Type

 

Note–most recent » Description

 

Note–most recent » Date

 

Note–most recent » Creator

 

Note–most recent » Creator » Organization

Enter the organization name to search for an organization to add as the Value

Note–most recent » Creator » Team

 

Note–most recent » Creator » Customer or agent

In cases where a user is registered with both the Customer and Agent profile types selected, this property will be consider them an Agent

Note–most recent » Creator » Type

Use to check if the creator of the note was registered with a Type of User, Company, or Department

Note–most recent » Creator » Access profile

 

Note–most recent » Creator » Country

 

Note–most recent » Creator » State

 

Note–most recent » Creator » City

 

Note–most recent » Creator » Address line 2

 

Note–most recent » Creator » Role

 

Note–most recent » Creator » Supervisor

 

Note–most recent » Creator » Classification

 

Note–most recent » Attachments

 

Note–most recent » Receiving email account

Use to check which support email account received the email that was imported into the ticket as the note.

Current date » Weekday

 

*Ticket » Asset

 

*Ticket » Asset » Category

Compares only against the exact category selected in the asset registration, ignoring other levels in the category tree.

For example, let’s look at a scenario where there is a first level category “Accessories” and a second level category under it of “Keyboards”. If a condition is created with Equal to as the Operator and “Accessories” as the Value:

  • A ticket with “Accessories” in Category would meet this condition.
  • A ticket with “Keyboards” in Category would not meet this condition, even though “Accessories” is part of the hierarchy for this category.

*Ticket » Asset » Category—1st Level

Compares against the category in the first level of the category tree from the category selected in the asset registration.

First level categories are those that do not have any other categories above them in the category tree.

Using the same example scenario we saw for the *Ticket » Asset » Category property:

  • A ticket with “Accessories” in Category would meet this condition.
  • A ticket with “Keyboards” in Category would also meet this condition, because “Accessories” is the first level in the hierarchy for this category.

*Ticket » Asset » Category—2st Level

Compares against the category in the second level of the category tree from the category selected in the asset registration.

Second level categories are those that have a single category above them in the category tree.

*Ticket » Asset » Category—3st Level

Compares against the category in the third level of the category tree from the category selected in the asset registration.

Third level categories are those that have two categories above them in the category tree.

*Ticket » Asset » Manufacturer

 

*Ticket » Asset » Brand

 

*Ticket » Asset » Product

 

*Ticket » Asset » Location

 

*Ticket » Asset » Status

 

*Ticket » Asset » Purchase date

 

*Ticket » Asset » Warranty expiration date

 

*Ticket » Asset » Cost

 

*Ticket » Asset » Used by

 

*Ticket » Asset » Vendors

 

*Ticket » CC

 

Ticket » Workflow

 

*Note–most recent » Tag

 

*Note–any » Tag

 

Ticket » Billing agreement

 

*Ticket » Contracted hours consumed

You can create block hour consumption thresholds using the *Remaining hours (%) and *Overage (%) operators. Note that Value for these operators must be a whole percentage (no decimals).

For example, if we have a 200 block hours billing agreement and want to set up a condition to fire when 240 hours have been consumed (40 hour overage), we would select *Overage (%) as the operator and calculate:

40 hour overage / 200 block hours = 0.2

Which gives us 20% to enter in Value.

Ticket » Requester » Language

 

*Ticket » Linked calendar events

 

*Ticket » Satisfaction survey » [Your survey question]

A new property will become available whenever you set up a new customer satisfaction survey question. You can find these easily by entering part of the question to search Property.

Operators and values available to these new Properties will vary depending on the type of question. For example, a survey question with the type NPS will have different operators than a survey question with the type Satisfied/Dissatisfied.

Ticket » Satisfaction survey » Pending response

The combination of the operator and value Survey email was and Sent checks for whether one of the ticket.satisfactionsurvey.rating placeholders has already been sent in an email for that ticket.

 

 

Classifique este artigo
Últimos artigos visitados