Search by

javierms / ticket_relay

JavierMS

Send support tickets from one Drupal site to another and follow them on a shared board.

Package info

github.com/Javier-Macia/ticket_relay

Type:drupal-module

pkg:composer/javierms/ticket_relay

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-11-27 07:43 UTC

This package is auto-updated.

Last update: 2026-11-27 07:45:01 UTC


README

Send incidents, tasks and suggestions from one Drupal site to another, and follow them from both sides.

Requirements

  • Drupal ^11.2 and PHP 8.3 or later.
  • Core modules only.
  • Private file system ($settings['file_private_path']) on the receiver, to accept attachments.

Installation

composer require javierms/ticket_relay
  • On the site that receives: drush en ticket_relay_receiver
  • On each site that sends: drush en ticket_relay_sender

Both can be enabled on the same site.

Configuration

  1. Receiver: add a website in /admin/config/services/ticket-relay-sources and copy its API key. It is shown only once.
  2. Sender: add a destination in /admin/config/services/ticket-relay-destinations with the receiver URL (HTTPS only) and the key.
  3. Grant the permissions:
    • manage ticket relay tickets and administer ticket relay sources (receiver).
    • use ticket relay tickets and administer ticket relay destinations (sender).

How it works

  • The sender calls the receiver; the receiver never calls the sender.
  • The API lives under /api/ticket-relay/v1/. A breaking change needs a new version.
  • Requests carry the X-Ticket-Relay-Key header. The receiver stores only a hash of each key, and each website only reaches its own tickets.
  • The sender keeps no tickets. Its destinations and keys live in the State API, so they are not exported with the configuration.
  • Only the receiver changes statuses. A source website can reopen a resolved ticket.
  • Internal notes never leave the receiver.
  • The module sends no email.

Limitations

  • The sender board shows the 200 most recent tickets.
  • Everyone with use ticket relay tickets sees all tickets of that site.
  • Behind a reverse proxy, configure reverse_proxy in settings.php: failed authentication is limited by client IP.

Tests

Run from the Drupal project root:

vendor/bin/phpunit -c web/core web/modules/contrib/ticket_relay