POST /api/v2/tickets/{ticket_id}/merge

Merges one or more tickets into the ticket with the specified id.

See Merging tickets in the Support Help Center for ticket merging rules.

Any attachment to the source ticket is copied to the target ticket.

This endpoint returns a job_status JSON object and queues a background job to do the work. Use the Show Job Status endpoint to check for the job's completion. Only a certain number of jobs can be queued or running at the same time. See Job limit for more information.

Allowed For

Agents in the Enterprise account must have merge permissions. See Creating custom roles and assigning agents (Enterprise) in the Support Help Center.

Available parameters

The request takes a data object with the following properties:

NameTypeRequiredComments
idsarrayyesIds of tickets to merge into the target ticket
target_commentstringnoPrivate comment to add to the target ticket. This comment is optional but strongly recommended
source_commentstringnoPrivate comment to add to the source ticket. This comment is optional but strongly recommended
target_comment_is_publicbooleannoWhether comments in the target ticket are public or private
source_comment_is_publicbooleannoWhether comments in the source tickets are public or private

target_comment and source_comment can be used to provide a reason for the merge for recordkeeping purposes. If the source ticket has attachments, they are included in target_comment.

Comments are private and can't be modified in the following cases:

In any other case, comments default to private but can be modified with the comment privacy parameters.

Servers

Path parameters

Name Type Required Description
ticket_id Integer Yes

The ID of the ticket

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
target_comment String No

Private comment to add to the target ticket

source_comment_is_public Boolean No

Whether comment in source tickets are public or private

source_comment String No

Private comment to add to the source ticket

target_comment_is_public Boolean No

Whether comment in target ticket is public or private

ids[] Array Yes

Ids of tickets to merge into the target ticket

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.