With the Auto Merge workflow, you can automatically merge tickets based on a matching criteria.
How it works
The workflow uses a trigger, which you create, to notify the Playlist Auto Merge Target when a ticket is created. The target will search through the requester's tickets to see if there's an existing ticket with matching fields.
For example, let's say you have a Shopify order ID field and use it as your matching criteria.
- When a requester submits a new ticket with a Shopify order ID, your trigger will notify the Playlist Auto Merge Target.
- The target will search through the requester's tickets for a matching Shopify order ID.
- If there is a match, the new ticket will be automatically merged into the most recent ticket that matches.
Auto Merge works independently of Round Robin and Playlist Button.
Setup
1. Generate Playlist API key
2. Enable Auto Merge
Go to Workflows > Auto Merge. Click on Enabled.
When you enable Auto Merge for the first time, a Playlist Auto Merge Target is automatically created for you. This target will be used by a trigger that you create in the next step.
Once enabled, you can adjust settings to your preferences.
Matching criteria
Fields to be used for matching tickets. When triggered, the workflow searches through the requester's 100 most recent tickets, sorted by created date. The new ticket is automatically merged into the first (i.e. most recent) ticket that matches based on the selected fields. If there are no matches, the new ticket is left untouched.
Field
The matching field. Some standard ticket fields and only custom fields of the following types are available:
- Drop-down
- Text
- Numeric
- Decimal
- Date
- Regex
Match blank fields
If checked for a field, and that field is blank for both tickets being compared, the fields are considered matches.
For example, if you selected External ID as a field and "Match blank fields" is checked for it, two tickets with a blank External ID would be considered matches. If "Match blank fields" is unchecked, they would not be considered matches.
Merge window (hours)
Limit how far back (in hours) the workflow should look. If no value is entered, it will search through the requester's 100 most recent tickets, regardless of when they were created.
Target ticket conditions
You can filter on the target ticket (ticket being merged into) by adding target ticket conditions.
Status and Group are currently the only available fields for filtering. If you don't add a target condition, Auto Merge will use the condition Status > Less than > Closed by default.
3. Create trigger to notify target
Trigger name: Playlist - Auto merge into matching ticket
- Ticket > Is > Created
- Status > Less than > Solved
- Your custom field (if applicable) > Present (i.e. only fire the trigger if custom field is populated)
- Notify target > Playlist Auto Merge Target

See also How can agents respond to a ticket that was automatically merged?
Avoiding trigger loops
To avoid trigger loops, please ensure that you only notify the target once within the lifecycle of each ticket. Using the Ticket > Is > Created condition in your trigger (i.e. only firing the trigger when a ticket is created) is the easiest way to prevent trigger loops.