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

# <a id="SuperOffice_WebApi_Data_TicketRelationItem" /> Class TicketRelationItem

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

Carrier object for TicketRelationItem.
A ticket related to another ticket, including counts of how many further relations it has.

```csharp theme={null}
public class TicketRelationItem
```

#### Inheritance

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

#### Inherited Members

[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)

## Constructors

### <a id="SuperOffice_WebApi_Data_TicketRelationItem__ctor" /> TicketRelationItem()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_BaseStatus" /> BaseStatus

The status of the ticket. I.e. active/closed/postponed/deleted
NULL if unknown enum value.

```csharp theme={null}
[JsonIgnore]
public TicketBaseStatus? BaseStatus { get; set; }
```

#### Property Value

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

#### See Also

[TicketRelationItem](SuperOffice.WebApi.Data.TicketRelationItem.md).[BaseStatus\_String](SuperOffice.WebApi.Data.TicketRelationItem.md#SuperOffice_WebApi_Data_TicketRelationItem_BaseStatus_String)

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_BaseStatus_String" /> BaseStatus\_String

The status of the ticket. I.e. active/closed/postponed/deleted
Raw string enum value.

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

#### Property Value

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

#### See Also

[TicketRelationItem](SuperOffice.WebApi.Data.TicketRelationItem.md).[BaseStatus](SuperOffice.WebApi.Data.TicketRelationItem.md#SuperOffice_WebApi_Data_TicketRelationItem_BaseStatus)

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_ChildCount" /> ChildCount

Number of child relations the related ticket has.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_ContactId" /> ContactId

The company of the person in the cust\_id field, if that person belongs to a company

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_ContactName" /> ContactName

The name of the connected contact

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_CustId" /> CustId

The reference to the customer. NULL or -1 if ticket is not connected to customer.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_HasParent" /> HasParent

Whether the related ticket has a parent relation.

```csharp theme={null}
public virtual bool HasParent { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_IconHint" /> IconHint

Icon representing the ticket's state.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_PersonFullname" /> PersonFullname

Get the full name for the primary person (customer)

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_RelatedCount" /> RelatedCount

Number of plain related relations the related ticket has.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_RelationComment" /> RelationComment

Free-text comment stored on the relation row.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_RelationCreatedAt" /> RelationCreatedAt

Registered when

```csharp theme={null}
public virtual DateTime RelationCreatedAt { get; set; }
```

#### Property Value

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

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

How this item relates to the source ticket: parent, child, or related.
NULL if unknown enum value.

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

#### Property Value

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

#### See Also

[TicketRelationItem](SuperOffice.WebApi.Data.TicketRelationItem.md).[RelationType\_String](SuperOffice.WebApi.Data.TicketRelationItem.md#SuperOffice_WebApi_Data_TicketRelationItem_RelationType_String)

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

How this item relates to the source ticket: parent, child, or related.
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

[TicketRelationItem](SuperOffice.WebApi.Data.TicketRelationItem.md).[RelationType](SuperOffice.WebApi.Data.TicketRelationItem.md#SuperOffice_WebApi_Data_TicketRelationItem_RelationType)

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_TicketCreatedAt" /> TicketCreatedAt

When the ticket was created.

```csharp theme={null}
public virtual DateTime TicketCreatedAt { get; set; }
```

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_TicketId" /> TicketId

The primary key (auto-incremented)

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

#### Property Value

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

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

Primary key

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_TicketStatus" /> TicketStatus

User defined ticket status

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_TicketStatusDisplayValue" /> TicketStatusDisplayValue

Get the display name of the ticket status.

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_TicketRelationItem_Title" /> Title

The title of the ticket.

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

#### Property Value

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

## 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)
- [WebAPI changes in SuperOffice 12.0](/release-notes/12/api/changes-webapi-12.0.342.0.md)
- [SuperOffice.WebApi.Data.TicketRelationType](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationType.md)
- [SuperOffice.WebApi.Data.TicketRelationEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationEntity.md)
- [SuperOffice.WebApi.Data.TicketRelationResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.TicketRelationResult.md)
