Show / Hide Table of Contents

Class TicketRelationHelper

Inheritance
object
TicketRelationHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Ticket
Assembly: SoDataBase.dll
Syntax
public static class TicketRelationHelper

Methods

EvaluateTicketRelationActionsAsync(int, CancellationToken)

Determines whether a ticket can be closed based on its related tickets and returns the IDs of any related tickets that prevent or offer closure. If the ticket can be closed, list of child tickets that offer closure is returned. If the ticket can be closed, checking maybe it is the last not closed child of another ticket, which based on definition rules should be offered to be closed too.

Declaration
public static Task<(bool CanCloseTicket, List<int> Children, int TicketIdToClose)> EvaluateTicketRelationActionsAsync(int ticketId, CancellationToken cancellationToken)
Parameters
Type Name Description
int ticketId

Ticket ID, 0 if ticket is new

CancellationToken cancellationToken

A token to monitor for cancellation requests.

Returns
Type Description
Task<(bool CanCloseTicket, List<int> Children, int TicketIdToClose)>

A tuple containing three elements: boolean which indicates whether the ticket can be closed, a list of child ticket IDs, and an ID of parent ticket if it should be closed.

IsParentRequiredAsync(int, CancellationToken)

Declaration
public static Task<bool> IsParentRequiredAsync(int ticketTypeId, CancellationToken cancellationToken)
Parameters
Type Name Description
int ticketTypeId
CancellationToken cancellationToken
Returns
Type Description
Task<bool>
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top