How to Create a Related Ticket Automatically Using HappyFox Workflows

By Harinarayanan V 1 views

This article explains how to use the Create Related Ticket, Create Related Ticket With Ticket Template, and Relate Tickets actions in HappyFox Workflows to automatically generate and link tickets as part of a workflow.

Applicable Plans: Available on all plans.


Prerequisites


When to use these actions

These three actions serve different purposes. Choose the one that fits your process:


How to add a related ticket action to a workflow

  1. Open the workflow in the workflow builder.
  2. Click Add Action at the point in the workflow where the related ticket should be created.
  3. In the action search field, type relate.
  4. Under HappyFox Helpdesk, select the action you want — Create Related Ticket, Create Related Ticket With Ticket Template, or Relate Tickets.

The action search panel showing the three related ticket actions under HappyFox Helpdesk.


Configuring Create Related Ticket

The Create Related Ticket action opens a configuration panel with the following fields.

Contact fields

These fields identify the contact on the new ticket.

Ticket fields

  1. Fill in all required fields — Contact Name, at least one of Contact Email or Contact Phone, Category, Subject, and Message.
  2. Use Insert Merge Fields on any field to pull values from the triggering ticket into the related ticket automatically.
  3. Click Save to save the action configuration, or Save & Test to save and run a test against a real ticket immediately.

Note: If any required field is left empty, the action will fail at runtime and log an error in Run History. Always verify required fields are populated — either with a static value or a merge field that is guaranteed to resolve. See How to Use Run History to Debug Workflow Issues if you need to trace a failed action.

The Create Related Ticket configuration panel, showing contact fields, ticket fields, and the message editor.


Configuring Create Related Ticket With Ticket Template

Use this action when the related ticket should be created from a pre-defined ticket template rather than built field by field.

The configuration panel has two steps.

Step 1 — Source ticket

Step 2 — Related ticket details

  1. Fill in Contact Name, at least one of Contact Email or Contact Phone, and Ticket Template.
  2. Click Save or Save & Test.

Note: The ticket template must already exist in HappyFox Help Desk before it can be selected here. If your template does not appear in the dropdown, verify it has been created in HappyFox Help Desk.

The Create Related Ticket With Ticket Template configuration panel, showing Step 1 (Ticket ID) and Step 2 (contact and template fields).


Configuring Relate Tickets

Use this action to link two tickets that already exist — for example, when a ticket ID from a previous workflow action or a merge field identifies the second ticket.

The configuration panel has two steps.

Step 1 — Source ticket

Step 2 — Ticket to relate

  1. Confirm the Ticket ID in Step 1 is pre-populated correctly.
  2. In the Relate to field, enter or insert the ID of the second ticket.
  3. Click Save or Save & Test.

Note: Both tickets must exist at the time the action runs. If the ticket ID in Relate to does not match an existing ticket, the action will fail. Check Run History for the error detail.

The Relate Tickets configuration panel, showing Step 1 (source Ticket ID with a live preview) and Step 2 (Relate to field).


Use cases


Frequently Asked Questions

A required field in my Create Related Ticket action is empty at runtime — what should I check? Open Run History and find the failed action. The error detail will identify which field was empty. The most common cause is a merge field that references a ticket field that was not populated on the triggering ticket — for example, a phone number field that the contact did not provide. Add a fallback static value or make the field optional in your workflow logic.

Can I attach files from the triggering ticket to the related ticket? Yes. Toggle Copy All Original Attachments on to copy all attachments, or use the Attachments field with Insert Merge Fields to reference specific attachment values. Note that attachments in Workflows are passed as URLs, not as binary files. If the receiving system requires a binary upload, the attachment transfer may not behave as expected.

Can I create more than one related ticket from a single workflow? Yes. Add multiple Create Related Ticket or Create Related Ticket With Ticket Template actions to the same workflow. Each action creates an independent related ticket linked to the same triggering ticket.

What is the difference between Create Related Ticket and Relate Tickets? Create Related Ticket creates a brand new ticket and links it to the triggering ticket in a single action. Relate Tickets only establishes a link — both tickets must already exist. Use Relate Tickets when the second ticket is created upstream in the same workflow or already exists in the system.


Your workflow is now configured to create or link related tickets automatically. Next, use Run History to verify the action ran correctly and confirm the related ticket was created with the expected field values.