API Reference: Ticket Links
readonly class LinkDTO implements DTOInterface. Represents a link between two objects (typically tickets) in Zammad. Links have a type (normal, parent, child) and connect a source object to a target object.
Properties:
| Field |
Type |
Required |
Notes |
id |
?int |
— |
|
link_type |
string |
yes |
normal, parent, child |
link_object_source |
string |
yes |
source object type, e.g. 'Ticket' |
link_object_source_value |
?int |
— |
source object ID |
link_object_target |
string |
yes |
target object type |
link_object_target_value |
?int |
— |
target object ID |
Does NOT use HasTimestamps — links have no date fields. fromArray() uses Cast::string() for the string fields.
Acceptance Criteria
Depends on
Produces
Testing
Documentation in README
API Reference: Ticket Links
readonly class LinkDTO implements DTOInterface. Represents a link between two objects (typically tickets) in Zammad. Links have a type (normal,parent,child) and connect a source object to a target object.Properties:
id?intlink_typestringnormal,parent,childlink_object_sourcestring'Ticket'link_object_source_value?intlink_object_targetstringlink_object_target_value?intDoes NOT use
HasTimestamps— links have no date fields.fromArray()usesCast::string()for the string fields.Acceptance Criteria
Depends on
Produces
LinkDTOTesting
LinkDTOTest— roundtripfromArray→toArrayfor all three link types (normal,parent,child), null omission on optional fieldsDocumentation in README
$client->link()->list('Ticket', 1)andadd()/remove()usage