> ## 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.

# SuperOffice.WebApi.Data.TicketRelationEntity

# <a id="SuperOffice_WebApi_Data_TicketRelationEntity" /> Class TicketRelationEntity

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for TicketRelationEntity.
Relationship between two tickets, as described by the TicketRelationDefinition.

```csharp theme={null}
public class TicketRelationEntity : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[TicketRelationEntity](SuperOffice.WebApi.Data.TicketRelationEntity.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Examples

Get TicketRelationEntity 123 using the WebApi client:
<pre><code class="lang-csharp">var configuration = new WebApiConfiguration(url);
var agent = new TicketAgent(configuration);
var ticketRelationEntity = agent.GetTicketRelationEntity( 123 );</code></pre>

## Constructors

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity__ctor" /> TicketRelationEntity()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public TicketRelationEntity()
```

## Properties

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_Comment" /> Comment

Comment for relation

```csharp theme={null}
public virtual string Comment { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_DestinationTicketId" /> DestinationTicketId

Destination ticket in this relation

```csharp theme={null}
public virtual int DestinationTicketId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_RelationType" /> RelationType

The type of relation between the two tickets.
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TicketRelationType? RelationType { get; set; }
```

#### Property Value

[TicketRelationType](SuperOffice.WebApi.Data.TicketRelationType.md)?

#### See Also

[TicketRelationEntity](SuperOffice.WebApi.Data.TicketRelationEntity.md).[RelationType\_String](SuperOffice.WebApi.Data.TicketRelationEntity.md#SuperOffice_WebApi_Data_TicketRelationEntity_RelationType_String)

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_RelationType_String" /> RelationType\_String

The type of relation between the two tickets.
Raw string enum value.

```csharp theme={null}
[JsonProperty("RelationType")]
public string RelationType_String { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

#### See Also

[TicketRelationEntity](SuperOffice.WebApi.Data.TicketRelationEntity.md).[RelationType](SuperOffice.WebApi.Data.TicketRelationEntity.md#SuperOffice_WebApi_Data_TicketRelationEntity_RelationType)

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_SourceTicketId" /> SourceTicketId

Source ticket in this relation

```csharp theme={null}
public virtual int SourceTicketId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_TicketRelationEntity_TicketRelationId" /> TicketRelationId

Primary key

```csharp theme={null}
public virtual int TicketRelationId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[TicketAgent](SuperOffice.WebApi.Agents.TicketAgent.md)


## Related topics

- [SuperOffice.WebApi.Agents.TicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.TicketAgent.md)
- [SuperOffice.WebApi.Agents.ITicketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ITicketAgent.md)
- [SuperOffice.WebApi.Data.TicketRelationDefinitionEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationDefinitionEntity.md)
- [SuperOffice.WebApi.Data.List GetAllTicketRelationDefinitionEntitiesRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.List_GetAllTicketRelationDefinitionEntitiesRequest.md)
- [SuperOffice.WebApi.Agents.IListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IListAgent.md)
- [SuperOffice.WebApi.Agents.ListAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ListAgent.md)
