Skip to content

Feature: added support for Ticket linking #78

Merged
derpixler merged 9 commits into
masterfrom
maintenance/rr/merge/ticket-linking
Jun 3, 2026
Merged

Feature: added support for Ticket linking #78
derpixler merged 9 commits into
masterfrom
maintenance/rr/merge/ticket-linking

Conversation

@derpixler
Copy link
Copy Markdown
Contributor

@derpixler derpixler commented Jun 3, 2026

Adds the Link resource class for managing ticket links via the Zammad REST API.

This change adds support for the Zammad Links REST API, enabling users to programmatically link, fetch, and unlink tickets using the PHP client. This is useful for automation workflows, integrations, and any scenario where related tickets need to be connected (e.g., linking a parent ticket to subtasks or grouping related issues).

This merge combines and improves upon two earlier PRs:

Changes

  • src/Resource/Link.php — New resource class with methods:
  • get($object_id, $object_type) — Fetch links of a ticket
  • add(Ticket $source, Ticket $target, $type) — Link two tickets
  • remove(Ticket $source, Ticket $target, $type) — Remove a link
  • src/ResourceType.php — Added LINK constant
  • test/ZammadAPIClient/Resource/LinkTest.php — Integration tests
  • README.md — Added "Linking Tickets" documentation section and LINK entry in the resource support table

API endpoints used

+--------+----------------------+
| Method |       Endpoint       |
+--------+----------------------+
| GET    | /api/v1/links        |
| POST   | /api/v1/links/add    |
| DELETE | /api/v1/links/remove |
+--------+----------------------+

Supported link types: normal, parent, child

Credits

Co-authored-by: chii0815
Co-authored-by: freyca

@derpixler derpixler requested a review from mgruner June 3, 2026 06:10
@derpixler derpixler self-assigned this Jun 3, 2026
@derpixler derpixler changed the title Feature: Added support for Ticket linking Feature: added support for Ticket linking Jun 3, 2026
@derpixler derpixler merged commit 6a11f8e into master Jun 3, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants