Freshdesk Merge Tickets

Searches for open tickets from a contact and merges them into the oldest matching ticket. Useful for consolidating duplicate tickets created by the same requester.

What it does

  • Searches for open tickets by requester email within a configurable time window.
  • Filters results by required/excluded tags and whether an agent has already responded.
  • Tags each qualifying ticket with dg-merged.
  • Calls the Freshdesk Merge API to combine all qualifying tickets into the oldest one (primary ticket).

Notes

  • Requires at least two tickets after filtering; otherwise the merge is skipped.
  • The oldest ticket (by created_at) becomes the primary. All others are merged into it and closed.
  • Conversations from secondary tickets are moved into the primary ticket chronologically.

Inputs

NameTypeDescription
DomainCredentialsFreshdesk subdomain
KeyCredentials (sensitive)Freshdesk API key
EmailStringRequester email to search tickets for
Include TagsListTags that all candidate tickets must have
Exclude TagsListTags that disqualify a ticket from merging
Check for AssignedBooleanWhen true, also excludes tickets already assigned to an agent
Time UnitStringUnit for the lookback window (minutes, hours, or days)
Number of UnitsNumberHow far back to look for updated tickets

Outputs

NameTypeDescription
SuccessBooleanWhether the merge was performed
MessageStringDescriptive result (e.g. number of tickets merged or reason for skipping)

API reference