javierms / ticket_relay
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
dev-main
2026-11-27 07:43 UTC
Requires
- php: >=8.3
- drupal/core: ^11.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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
- Receiver: add a website in
/admin/config/services/ticket-relay-sourcesand copy its API key. It is shown only once. - Sender: add a destination in
/admin/config/services/ticket-relay-destinationswith the receiver URL (HTTPS only) and the key. - Grant the permissions:
manage ticket relay ticketsandadminister ticket relay sources(receiver).use ticket relay ticketsandadminister 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-Keyheader. 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 ticketssees all tickets of that site. - Behind a reverse proxy, configure
reverse_proxyinsettings.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