Class NSTicketEntity

Represents a service ticket.

Constructors

NSTicketEntity()

Initializes a new instance of the NSTicketEntity class.

Declaration

NSTicketEntity

Methods

GetActivate()

When the ticket should be activated, if it is postponed.

Declaration

DateTime GetActivate()

Examples

NSTicketEntity thing;
DateTime activate = thing.GetActivate();

Returns

Type Description
DateTime

GetAlertLevel()

The alert level for the ticket. Matches the level value of the ticket_alert table.

Declaration

Integer GetAlertLevel()

Examples

NSTicketEntity thing;
Integer alertLevel = thing.GetAlertLevel();

Returns

Type Description
Integer

GetAlertTimeout()

The datetime for when the ticket should jump to the next alert_level.

Declaration

DateTime GetAlertTimeout()

Examples

NSTicketEntity thing;
DateTime alertTimeout = thing.GetAlertTimeout();

Returns

Type Description
DateTime

GetAuthor()

A string representing the author of the ticket (same as author of first message).

Declaration

String GetAuthor()

Examples

NSTicketEntity thing;
String author = thing.GetAuthor();

Returns

Type Description
String

GetBaseStatus()

Declaration

Integer GetBaseStatus()

Examples

NSTicketEntity thing;
Integer baseStatus = thing.GetBaseStatus();

Returns

Type Description
Integer The status of the ticket. See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>

GetCategory()

The ticket category entity which this ticket is connected to

Declaration

NSTicketCategoryEntity GetCategory()

Examples

NSTicketEntity thing;
NSTicketCategoryEntity category = thing.GetCategory();

Returns

Type Description
NSTicketCategoryEntity

GetClosedAt()

When the ticket was closed.

Declaration

DateTime GetClosedAt()

Examples

NSTicketEntity thing;
DateTime closedAt = thing.GetClosedAt();

Returns

Type Description
DateTime

GetConnectId()

If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket.

Declaration

Integer GetConnectId()

Examples

NSTicketEntity thing;
Integer connectId = thing.GetConnectId();

Returns

Type Description
Integer

GetCreatedAt()

When the ticket was created.

Declaration

DateTime GetCreatedAt()

Examples

NSTicketEntity thing;
DateTime createdAt = thing.GetCreatedAt();

Returns

Type Description
DateTime

GetCreatedBy()

The associate who created this ticket

Declaration

NSAssociate GetCreatedBy()

Examples

NSTicketEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();

Returns

Type Description
NSAssociate

GetCustomFields()

Gets the user-defined + extra fields on a TicketEntity as a map.

Declaration

Map GetCustomFields()

Examples

NSTicketEntity thing;
Map fields = thing.GetCustomFields();
String oldValue = fields.get("SuperOffice:1");
fields.insert("SuperOffice:1", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());

Returns

Type Description
Map

GetDeadline()

Deadline for ticket.

Declaration

DateTime GetDeadline()

Examples

NSTicketEntity thing;
DateTime deadline = thing.GetDeadline();

Returns

Type Description
DateTime

GetExtraFields()

Gets the extra fields on TicketEntity as a map.

Declaration

Map GetExtraFields()

Examples

NSTicketEntity thing;
Map fields = thing.GetExtraFields();
String oldValue = fields.get("x_foobar");
fields.insert("x_foobar", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());

Returns

Type Description
Map

GetFirstReadByUser()

The datetime for when the ticket first was read by a user.

Declaration

DateTime GetFirstReadByUser()

Examples

NSTicketEntity thing;
DateTime firstReadByUser = thing.GetFirstReadByUser();

Returns

Type Description
DateTime

GetFromAddress()

The from-address used when this ticket got created, e.g. by email

Declaration

String GetFromAddress()

Examples

NSTicketEntity thing;
String fromAddress = thing.GetFromAddress();

Returns

Type Description
String

GetHasAttachment()

Bool indicating if this ticket has one or more attachments.

Declaration

Bool GetHasAttachment()

Examples

NSTicketEntity thing;
Bool hasAttachment = thing.GetHasAttachment();

Returns

Type Description
Bool

GetLastChanged()

The last time the ticket was modified.

Declaration

DateTime GetLastChanged()

Examples

NSTicketEntity thing;
DateTime lastChanged = thing.GetLastChanged();

Returns

Type Description
DateTime

GetMessages()

Declaration

NSTicketMessage[] GetMessages()

Examples

NSTicketEntity thing;
NSTicketMessage[] messages = thing.GetMessages();

Returns

Type Description
NSTicketMessage[] TicketMessageId, CreatedAt, SLevel, and Important for all the messages connected to this ticket.

GetNumMessages()

The total number of messages for this request.

Declaration

Integer GetNumMessages()

Examples

NSTicketEntity thing;
Integer numMessages = thing.GetNumMessages();

Returns

Type Description
Integer

GetNumReplies()

The number of replies (messages) to the customer for this request.

Declaration

Integer GetNumReplies()

Examples

NSTicketEntity thing;
Integer numReplies = thing.GetNumReplies();

Returns

Type Description
Integer

GetOrigin()

What is the origin of this ticket

Declaration

Integer GetOrigin()

Examples

NSTicketEntity thing;
Integer origin = thing.GetOrigin();

Returns

Type Description
Integer See <xref href="CRMScript.NetServer.TicketOrigin" data-throw-if-not-resolved="false"></xref>.

GetOwnedBy()

The associate who owns this ticket

Declaration

NSAssociate GetOwnedBy()

Examples

NSTicketEntity thing;
NSAssociate ownedBy = thing.GetOwnedBy();

Returns

Type Description
NSAssociate

GetPerson()

The primary person that this ticket is connected to

Declaration

NSPerson GetPerson()

Examples

NSTicketEntity thing;
NSPerson person = thing.GetPerson();

Returns

Type Description
NSPerson

GetPriority()

The ticket priority entity which this ticket is connected to

Declaration

NSTicketPriorityEntity GetPriority()

Examples

NSTicketEntity thing;
NSTicketPriorityEntity priority = thing.GetPriority();

Returns

Type Description
NSTicketPriorityEntity

GetReadByCustomer()

The datetime for when the ticket was read by the customer.

Declaration

DateTime GetReadByCustomer()

Examples

NSTicketEntity thing;
DateTime readByCustomer = thing.GetReadByCustomer();

Returns

Type Description
DateTime

GetReadByOwner()

The datetime for when the ticket last was read by the owner.

Declaration

DateTime GetReadByOwner()

Examples

NSTicketEntity thing;
DateTime readByOwner = thing.GetReadByOwner();

Returns

Type Description
DateTime

GetReadStatus()

Declaration

Integer GetReadStatus()

Examples

NSTicketEntity thing;
Integer readStatus = thing.GetReadStatus();

Returns

Type Description
Integer Whether the owner has read the ticket or not (red, yellow, green). See <xref href="CRMScript.NetServer.TicketReadStatus" data-throw-if-not-resolved="false"></xref>.

GetRealTimeSpentExternally()

The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state

Declaration

Integer GetRealTimeSpentExternally()

Examples

NSTicketEntity thing;
Integer realTimeSpentExternally = thing.GetRealTimeSpentExternally();

Returns

Type Description
Integer

GetRealTimeSpentInternally()

The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state

Declaration

Integer GetRealTimeSpentInternally()

Examples

NSTicketEntity thing;
Integer realTimeSpentInternally = thing.GetRealTimeSpentInternally();

Returns

Type Description
Integer

GetRealTimeSpentQueue()

The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state

Declaration

Integer GetRealTimeSpentQueue()

Examples

NSTicketEntity thing;
Integer realTimeSpentQueue = thing.GetRealTimeSpentQueue();

Returns

Type Description
Integer

GetRealTimeToClose()

Same as time_to_close, but not calculated based on priority.

Declaration

Integer GetRealTimeToClose()

Examples

NSTicketEntity thing;
Integer realTimeToClose = thing.GetRealTimeToClose();

Returns

Type Description
Integer

GetRealTimeToReply()

Same as time_to_reply, but not calculated based on priority.

Declaration

Integer GetRealTimeToReply()

Examples

NSTicketEntity thing;
Integer realTimeToReply = thing.GetRealTimeToReply();

Returns

Type Description
Integer

GetRepliedAt()

The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.

Declaration

DateTime GetRepliedAt()

Examples

NSTicketEntity thing;
DateTime repliedAt = thing.GetRepliedAt();

Returns

Type Description
DateTime

GetSecondaryPersons()

The secondary persons this ticket is connected to

Declaration

NSPerson[] GetSecondaryPersons()

Examples

NSTicketEntity thing;
NSPerson[] secondaryPersons = thing.GetSecondaryPersons();

Returns

Type Description
NSPerson[]

GetSlevel()

Declaration

Integer GetSlevel()

Examples

NSTicketEntity thing;
Integer slevel = thing.GetSlevel();

Returns

Type Description
Integer The security level of the ticket. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>.

GetStatus()

The ticket status entity which this ticket is connected to

Declaration

NSTicketStatusEntity GetStatus()

Examples

NSTicketEntity thing;
NSTicketStatusEntity status = thing.GetStatus();

Returns

Type Description
NSTicketStatusEntity

GetTags()

An array containing the tags assigned to this request.

Declaration

NSTag[] GetTags()

Examples

NSTicketEntity thing;
NSTag[] tags = thing.GetTags();

Returns

Type Description
NSTag[]

GetTicketId()

The primary key (auto-incremented)

Declaration

Integer GetTicketId()

Examples

NSTicketEntity thing;
Integer ticketId = thing.GetTicketId();

Returns

Type Description
Integer

GetTimeSpentExternally()

The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state

Declaration

Integer GetTimeSpentExternally()

Examples

NSTicketEntity thing;
Integer timeSpentExternally = thing.GetTimeSpentExternally();

Returns

Type Description
Integer

GetTimeSpentInternally()

The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state

Declaration

Integer GetTimeSpentInternally()

Examples

NSTicketEntity thing;
Integer timeSpentInternally = thing.GetTimeSpentInternally();

Returns

Type Description
Integer

GetTimeSpentQueue()

The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state

Declaration

Integer GetTimeSpentQueue()

Examples

NSTicketEntity thing;
Integer timeSpentQueue = thing.GetTimeSpentQueue();

Returns

Type Description
Integer

GetTimeToClose()

The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe.

Declaration

Integer GetTimeToClose()

Examples

NSTicketEntity thing;
Integer timeToClose = thing.GetTimeToClose();

Returns

Type Description
Integer

GetTimeToReply()

The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe.

Declaration

Integer GetTimeToReply()

Examples

NSTicketEntity thing;
Integer timeToReply = thing.GetTimeToReply();

Returns

Type Description
Integer

GetTitle()

The title of the ticket.

Declaration

String GetTitle()

Examples

NSTicketEntity thing;
String title = thing.GetTitle();

Returns

Type Description
String

SetActivate(DateTime)

When the ticket should be activated, if it is postponed.

Declaration

Void SetActivate(DateTime activate)

Examples

NSTicketEntity thing;
DateTime activate;
thing.SetActivate(activate);

Parameters

Type Name Description
DateTime activate

Returns

Type Description
Void

SetAlertLevel(Integer)

The alert level for the ticket. Matches the level value of the ticket_alert table.

Declaration

Void SetAlertLevel(Integer alertLevel)

Examples

NSTicketEntity thing;
Integer alertLevel;
thing.SetAlertLevel(alertLevel);

Parameters

Type Name Description
Integer alertLevel

Returns

Type Description
Void

SetAlertTimeout(DateTime)

The datetime for when the ticket should jump to the next alert level.

Declaration

Void SetAlertTimeout(DateTime alertTimeout)

Examples

NSTicketEntity thing;
DateTime alertTimeout;
thing.SetAlertTimeout(alertTimeout);

Parameters

Type Name Description
DateTime alertTimeout

Returns

Type Description
Void

SetAuthor(String)

A string representing the author of the ticket (same as author of first message).

Declaration

Void SetAuthor(String author)

Examples

NSTicketEntity thing;
String author;
thing.SetAuthor(author);

Parameters

Type Name Description
String author

Returns

Type Description
Void

SetBaseStatus(Integer)

Declaration

Void SetBaseStatus(Integer baseStatus)

Examples

NSTicketEntity thing;
Integer baseStatus;
thing.SetBaseStatus(baseStatus);

Parameters

Type Name Description
Integer baseStatus The status of the ticket. See <xref href="CRMScript.NetServer.TicketBaseStatus" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetCategory(NSTicketCategoryEntity)

Declaration

Void SetCategory(NSTicketCategoryEntity category)

Examples

NSTicketEntity thing;
NSTicketCategoryEntity category;
thing.SetCategory(category);

Parameters

Type Name Description
NSTicketCategoryEntity category The ticket category entity which this ticket is connected to.

Returns

Type Description
Void

SetClosedAt(DateTime)

Declaration

Void SetClosedAt(DateTime closedAt)

Examples

NSTicketEntity thing;
DateTime closedAt;
thing.SetClosedAt(closedAt);

Parameters

Type Name Description
DateTime closedAt When the ticket was closed.

Returns

Type Description
Void

SetConnectId(Integer)

If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket.

Declaration

Void SetConnectId(Integer connectId)

Examples

NSTicketEntity thing;
Integer connectId;
thing.SetConnectId(connectId);

Parameters

Type Name Description
Integer connectId

Returns

Type Description
Void

SetCreatedAt(DateTime)

When the ticket was created.

Declaration

Void SetCreatedAt(DateTime createdAt)

Examples

NSTicketEntity thing;
DateTime createdAt;
thing.SetCreatedAt(createdAt);

Parameters

Type Name Description
DateTime createdAt

Returns

Type Description
Void

SetCreatedBy(NSAssociate)

Declaration

Void SetCreatedBy(NSAssociate createdBy)

Examples

NSTicketEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);

Parameters

Type Name Description
NSAssociate createdBy The associate who created this ticket.

Returns

Type Description
Void

SetCustomFields(Map)

Sets the user-defined and extra fields on a TicketEntity with a map.

Declaration

Void SetCustomFields(Map udefs)

Examples

NSTicketEntity thing;
Map udefs;
udefs.insert("SuperOffice:1", "[I:123]");
udefs.insert("SuperOffice:1","123"); // this will also work, but beware of decimal point variations in different languages
udefs.insert("custom.progid","foobar");
udefs.insert("x_foo","foobar");
udefs.insert("x_bar","456"); // List item id
thing.SetCustomFields(udefs);

Parameters

Type Name Description
Map udefs

Returns

Type Description
Void

SetDeadline(DateTime)

Declaration

Void SetDeadline(DateTime deadline)

Examples

NSTicketEntity thing;
DateTime deadline;
thing.SetDeadline(deadline);

Parameters

Type Name Description
DateTime deadline Deadline for ticket.

Returns

Type Description
Void

SetExtraFields(Map)

Sets the extra field values on TicketEntity with a map.

Declaration

Void SetExtraFields(Map extras)

Examples

NSTicketEntity thing;
Map extras;
extras.insert("custom.progid","foobar");
thing.SetExtraFields(extras);

Parameters

Type Name Description
Map extras

Returns

Type Description
Void

SetFirstReadByUser(DateTime)

Declaration

Void SetFirstReadByUser(DateTime firstReadByUser)

Examples

NSTicketEntity thing;
DateTime firstReadByUser;
thing.SetFirstReadByUser(firstReadByUser);

Parameters

Type Name Description
DateTime firstReadByUser The datetime for when the ticket first was read by a user.

Returns

Type Description
Void

SetFromAddress(String)

The from-address used when this ticket got created, e.g. by email

Declaration

Void SetFromAddress(String fromAddress)

Examples

NSTicketEntity thing;
String fromAddress;
thing.SetFromAddress(fromAddress);

Parameters

Type Name Description
String fromAddress

Returns

Type Description
Void

SetHasAttachment(Bool)

Bool indicating if this ticket has one or more attachments.

Declaration

Void SetHasAttachment(Bool hasAttachment)

Examples

NSTicketEntity thing;
Bool hasAttachment;
thing.SetHasAttachment(hasAttachment);

Parameters

Type Name Description
Bool hasAttachment

Returns

Type Description
Void

SetLastChanged(DateTime)

Declaration

Void SetLastChanged(DateTime lastChanged)

Examples

NSTicketEntity thing;
DateTime lastChanged;
thing.SetLastChanged(lastChanged);

Parameters

Type Name Description
DateTime lastChanged The last time the ticket was modified.

Returns

Type Description
Void

SetMessages(NSTicketMessage[])

Declaration

Void SetMessages(NSTicketMessage[] messages)

Examples

NSTicketEntity thing;
NSTicketMessage[] messages;
thing.SetMessages(messages);

Parameters

Type Name Description
NSTicketMessage[] messages TicketMessageId,CreatedAt,SLevel and Important for all the messages connected to this ticket.

Returns

Type Description
Void

SetNumMessages(Integer)

The total number of messages for this request.

Declaration

Void SetNumMessages(Integer numMessages)

Examples

NSTicketEntity thing;
Integer numMessages;
thing.SetNumMessages(numMessages);

Parameters

Type Name Description
Integer numMessages

Returns

Type Description
Void

SetNumReplies(Integer)

The number of replies (messages) to the customer for this request.

Declaration

Void SetNumReplies(Integer numReplies)

Examples

NSTicketEntity thing;
Integer numReplies;
thing.SetNumReplies(numReplies);

Parameters

Type Name Description
Integer numReplies

Returns

Type Description
Void

SetOrigin(Integer)

Declaration

Void SetOrigin(Integer origin)

Examples

NSTicketEntity thing;
Integer origin;
thing.SetOrigin(origin);

Parameters

Type Name Description
Integer origin What is the origin of this ticket? See <xref href="CRMScript.NetServer.TicketOrigin" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetOwnedBy(NSAssociate)

Declaration

Void SetOwnedBy(NSAssociate ownedBy)

Examples

NSTicketEntity thing;
NSAssociate ownedBy;
thing.SetOwnedBy(ownedBy);

Parameters

Type Name Description
NSAssociate ownedBy The associate who owns this ticket.

Returns

Type Description
Void

SetPerson(NSPerson)

The primary person that this ticket is connected to

Declaration

Void SetPerson(NSPerson person)

Examples

NSTicketEntity thing;
NSPerson person;
thing.SetPerson(person);

Parameters

Type Name Description
NSPerson person

Returns

Type Description
Void

SetPriority(NSTicketPriorityEntity)

The ticket priority entity which this ticket is connected to

Declaration

Void SetPriority(NSTicketPriorityEntity priority)

Examples

NSTicketEntity thing;
NSTicketPriorityEntity priority;
thing.SetPriority(priority);

Parameters

Type Name Description
NSTicketPriorityEntity priority

Returns

Type Description
Void

SetReadByCustomer(DateTime)

Declaration

Void SetReadByCustomer(DateTime readByCustomer)

Examples

NSTicketEntity thing;
DateTime readByCustomer;
thing.SetReadByCustomer(readByCustomer);

Parameters

Type Name Description
DateTime readByCustomer The datetime for when the ticket was read by the customer.

Returns

Type Description
Void

SetReadByOwner(DateTime)

Declaration

Void SetReadByOwner(DateTime readByOwner)

Examples

NSTicketEntity thing;
DateTime readByOwner;
thing.SetReadByOwner(readByOwner);

Parameters

Type Name Description
DateTime readByOwner The datetime for when the ticket was read by the owner.

Returns

Type Description
Void

SetReadStatus(Integer)

Declaration

Void SetReadStatus(Integer readStatus)

Examples

NSTicketEntity thing;
Integer readStatus;
thing.SetReadStatus(readStatus);

Parameters

Type Name Description
Integer readStatus Whether the owner has read the ticket or not (red, yellow, green). See <xref href="CRMScript.NetServer.TicketReadStatus" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetRealTimeSpentExternally(Integer)

The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state

Declaration

Void SetRealTimeSpentExternally(Integer realTimeSpentExternally)

Examples

NSTicketEntity thing;
Integer realTimeSpentExternally;
thing.SetRealTimeSpentExternally(realTimeSpentExternally);

Parameters

Type Name Description
Integer realTimeSpentExternally

Returns

Type Description
Void

SetRealTimeSpentInternally(Integer)

The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state

Declaration

Void SetRealTimeSpentInternally(Integer realTimeSpentInternally)

Examples

NSTicketEntity thing;
Integer realTimeSpentInternally;
thing.SetRealTimeSpentInternally(realTimeSpentInternally);

Parameters

Type Name Description
Integer realTimeSpentInternally

Returns

Type Description
Void

SetRealTimeSpentQueue(Integer)

The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state

Declaration

Void SetRealTimeSpentQueue(Integer realTimeSpentQueue)

Examples

NSTicketEntity thing;
Integer realTimeSpentQueue;
thing.SetRealTimeSpentQueue(realTimeSpentQueue);

Parameters

Type Name Description
Integer realTimeSpentQueue

Returns

Type Description
Void

SetRealTimeToClose(Integer)

Same as time_to_close, but not calculated based on priority.

Declaration

Void SetRealTimeToClose(Integer realTimeToClose)

Examples

NSTicketEntity thing;
Integer realTimeToClose;
thing.SetRealTimeToClose(realTimeToClose);

Parameters

Type Name Description
Integer realTimeToClose

Returns

Type Description
Void

SetRealTimeToReply(Integer)

Same as time_to_reply, but not calculated based on priority.

Declaration

Void SetRealTimeToReply(Integer realTimeToReply)

Examples

NSTicketEntity thing;
Integer realTimeToReply;
thing.SetRealTimeToReply(realTimeToReply);

Parameters

Type Name Description
Integer realTimeToReply

Returns

Type Description
Void

SetRepliedAt(DateTime)

The datetime for when the ticket was replied to (when the first external message added to the ticket).

Declaration

Void SetRepliedAt(DateTime repliedAt)

Examples

NSTicketEntity thing;
DateTime repliedAt;
thing.SetRepliedAt(repliedAt);

Parameters

Type Name Description
DateTime repliedAt When the ticket was replied to.

Returns

Type Description
Void

SetSecondaryPersons(NSPerson[])

The secondary persons this ticket is connected to

Declaration

Void SetSecondaryPersons(NSPerson[] secondaryPersons)

Examples

NSTicketEntity thing;
NSPerson[] secondaryPersons;
thing.SetSecondaryPersons(secondaryPersons);

Parameters

Type Name Description
NSPerson[] secondaryPersons

Returns

Type Description
Void

SetSlevel(Integer)

Declaration

Void SetSlevel(Integer slevel)

Examples

NSTicketEntity thing;
Integer slevel;
thing.SetSlevel(slevel);

Parameters

Type Name Description
Integer slevel The security level of the ticket. See <xref href="CRMScript.NetServer.TicketSecurityLevel" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void

SetStatus(NSTicketStatusEntity)

Declaration

Void SetStatus(NSTicketStatusEntity status)

Examples

NSTicketEntity thing;
NSTicketStatusEntity status;
thing.SetStatus(status);

Parameters

Type Name Description
NSTicketStatusEntity status The ticket status entity which this ticket is connected to.

Returns

Type Description
Void

SetTags(NSTag[])

An array containing the tags assigned to this request

Declaration

Void SetTags(NSTag[] tags)

Examples

NSTicketEntity thing;
NSTag[] tags;
thing.SetTags(tags);

Parameters

Type Name Description
NSTag[] tags

Returns

Type Description
Void

SetTicketId(Integer)

The primary key (auto-incremented)

Declaration

Void SetTicketId(Integer ticketId)

Examples

NSTicketEntity thing;
Integer ticketId;
thing.SetTicketId(ticketId);

Parameters

Type Name Description
Integer ticketId

Returns

Type Description
Void

SetTimeSpentExternally(Integer)

The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state

Declaration

Void SetTimeSpentExternally(Integer timeSpentExternally)

Examples

NSTicketEntity thing;
Integer timeSpentExternally;
thing.SetTimeSpentExternally(timeSpentExternally);

Parameters

Type Name Description
Integer timeSpentExternally

Returns

Type Description
Void

SetTimeSpentInternally(Integer)

The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state

Declaration

Void SetTimeSpentInternally(Integer timeSpentInternally)

Examples

NSTicketEntity thing;
Integer timeSpentInternally;
thing.SetTimeSpentInternally(timeSpentInternally);

Parameters

Type Name Description
Integer timeSpentInternally

Returns

Type Description
Void

SetTimeSpentQueue(Integer)

The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state

Declaration

Void SetTimeSpentQueue(Integer timeSpentQueue)

Examples

NSTicketEntity thing;
Integer timeSpentQueue;
thing.SetTimeSpentQueue(timeSpentQueue);

Parameters

Type Name Description
Integer timeSpentQueue

Returns

Type Description
Void

SetTimeToClose(Integer)

The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's timeframe.

Declaration

Void SetTimeToClose(Integer timeToClose)

Examples

NSTicketEntity thing;
Integer timeToClose;
thing.SetTimeToClose(timeToClose);

Parameters

Type Name Description
Integer timeToClose

Returns

Type Description
Void

SetTimeToReply(Integer)

The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's timeframe.

Declaration

Void SetTimeToReply(Integer timeToReply)

Examples

NSTicketEntity thing;
Integer timeToReply;
thing.SetTimeToReply(timeToReply);

Parameters

Type Name Description
Integer timeToReply

Returns

Type Description
Void

SetTitle(String)

The title of the ticket.

Declaration

Void SetTitle(String title)

Examples

NSTicketEntity thing;
String title;
thing.SetTitle(title);

Parameters

Type Name Description
String title

Returns

Type Description
Void