> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ticket_relation table

> A relation between 2 tickets

## ticket\_relation Table (557)

A relation between 2 tickets

## Fields

| Name                      | Description                                                            | Type                                                  | Nullable |
| ------------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------- | :------: |
| ticket\_relation\_id      | Primary key                                                            | PK                                                    |    No    |
| source\_ticket\_id        | Source ticket in this relation                                         | FK [ticket](./ticket.mdx)                             |    No    |
| destination\_ticket\_id   | Destination ticket in this relation                                    | FK [ticket](./ticket.mdx)                             |    No    |
| ticket\_relation\_def\_id | The (optional) relation definition where this relation originated from | FK [ticket\_relation\_def](./ticket-relation-def.mdx) |    No    |
| comment                   | Comment for relation                                                   | String(255)                                           |    Yes   |
| registered                | Registered when                                                        | UtcDateTime                                           |    No    |
| registered\_associate\_id | Registered by whom                                                     | FK [associate](./associate.mdx)                       |    No    |
| updated                   | Last updated when                                                      | UtcDateTime                                           |    No    |
| updated\_associate\_id    | Last updated by whom                                                   | FK [associate](./associate.mdx)                       |    No    |
| updatedCount              | Number of updates made to this record                                  | UShort                                                |    No    |

<img src="https://mintcdn.com/superofficeas/8-OIGQQJR0VGDXy_/media/loc/en/database/tables/ticket_relation.png?fit=max&auto=format&n=8-OIGQQJR0VGDXy_&q=85&s=33c9aa5fff04dc03b7bc6aeb58d2e729" alt="ticket_relation table relationship diagram" width="729" height="686" data-path="media/loc/en/database/tables/ticket_relation.png" />

## Indexes

| Fields                  | Types | Description |
| ----------------------- | ----- | ----------- |
| source\_ticket\_id      | FK    | Index       |
| destination\_ticket\_id | FK    | Index       |

## Relationships

| Table                                          | Description                                                                              |
| ---------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [associate](./associate)                       | Employees, resources and other users - except for External persons                       |
| [ticket](./ticket)                             | This table contains the tickets (requests) of the system. Its purpose should be evident. |
| [ticket\_relation\_def](./ticket-relation-def) | Ticket relation definition                                                               |

## Replication Flags

* None

## Security Flags

* No access control via user's Role.


## Related topics

- [ticket_relation_def table](/en/database/tables/ticket-relation-def.md)
- [Put Ticket Relation Entity](/en/api/reference/restful/rest/ticketrelation/put-ticket-relation-entity.md)
- [Post Ticket Relation Entity](/en/api/reference/restful/rest/ticketrelation/post-ticket-relation-entity.md)
- [Default Ticket Relation Entity](/en/api/reference/restful/rest/ticketrelation/default-ticket-relation-entity.md)
- [Get Ticket Relation Entity](/en/api/reference/restful/rest/ticketrelation/get-ticket-relation-entity.md)
- [Post Ticket Relation Definition Entity](/en/api/reference/restful/rest/ticketrelationdefinition/post-ticket-relation-definition-entity.md)
