Class NSTicket
Syntax
Constructors
NSTicket()
Initializes a new instance of the NSTicket class.
Declaration
Methods
GetActivate()
Declaration
Returns
Type |
Description |
DateTime |
When the ticket should be activated, if it is postponed.
|
Examples
NSTicket thing;
DateTime activate = thing.GetActivate();
GetAlertLevel()
Declaration
Returns
Type |
Description |
Integer |
The alert level for the ticket. Matches the level value of the ticket_alert table.
|
Examples
NSTicket thing;
Integer alertLevel = thing.GetAlertLevel();
GetAlertTimeout()
Declaration
DateTime GetAlertTimeout()
Returns
Type |
Description |
DateTime |
The datetime for when the ticket should jump to the next alert_level.
|
Examples
NSTicket thing;
DateTime alertTimeout = thing.GetAlertTimeout();
GetAuthor()
Declaration
Returns
Type |
Description |
String |
A string representing the author of the ticket (same as author of first message).
|
Examples
NSTicket thing;
String author = thing.GetAuthor();
GetBaseStatus()
Declaration
Returns
Examples
NSTicket thing;
Integer baseStatus = thing.GetBaseStatus();
GetCategory()
Declaration
Returns
Type |
Description |
Integer |
The ID of the category a ticket is in.
|
Examples
NSTicket thing;
Integer category = thing.GetCategory();
GetCategoryFullname()
Declaration
String GetCategoryFullname()
Returns
Type |
Description |
String |
The fullname (compiled from parents' names) for this category. E.g. 'norway/product A/support'.
|
Examples
NSTicket thing;
String categoryFullname = thing.GetCategoryFullname();
GetCategoryName()
Declaration
Returns
Type |
Description |
String |
The (short) name of this category. E.g. 'support'.
|
Examples
NSTicket thing;
String categoryName = thing.GetCategoryName();
GetClosedAt()
Declaration
Returns
Type |
Description |
DateTime |
When the ticket was closed.
|
Examples
NSTicket thing;
DateTime closedAt = thing.GetClosedAt();
GetConnectId()
Declaration
Returns
Type |
Description |
Integer |
If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket.
|
Examples
NSTicket thing;
Integer connectId = thing.GetConnectId();
GetCreatedAt()
Declaration
Returns
Type |
Description |
DateTime |
When the ticket was created.
|
Examples
NSTicket thing;
DateTime createdAt = thing.GetCreatedAt();
GetCreatedBy()
Declaration
Returns
Type |
Description |
Integer |
The ID of the user who created the ticket. 1 (system user) if the ticket was created externally.
|
Examples
NSTicket thing;
Integer createdBy = thing.GetCreatedBy();
GetCreatedByName()
Declaration
String GetCreatedByName()
Returns
Type |
Description |
String |
Initials, also login name, possibly database user name.
|
Examples
NSTicket thing;
String createdByName = thing.GetCreatedByName();
GetCustId()
Declaration
Returns
Type |
Description |
Integer |
The reference to the customer. NULL or -1 if ticket is not connected to customer.
|
Examples
NSTicket thing;
Integer custId = thing.GetCustId();
GetDeadline()
Declaration
Returns
Type |
Description |
DateTime |
Deadline for ticket.
|
Examples
NSTicket thing;
DateTime deadline = thing.GetDeadline();
GetFirstReadByUser()
Declaration
DateTime GetFirstReadByUser()
Returns
Type |
Description |
DateTime |
The datetime for when the ticket first was read by a user.
|
Examples
NSTicket thing;
DateTime firstReadByUser = thing.GetFirstReadByUser();
GetFromAddress()
Declaration
Returns
Type |
Description |
String |
The from-address used when this ticket got created, e.g. by email.
|
Examples
NSTicket thing;
String fromAddress = thing.GetFromAddress();
GetHasAttachment()
Declaration
Returns
Type |
Description |
Bool |
Bool indicating if this ticket has one or more attachments.
|
Examples
NSTicket thing;
Bool hasAttachment = thing.GetHasAttachment();
GetLastChanged()
Declaration
DateTime GetLastChanged()
Returns
Type |
Description |
DateTime |
The last time the ticket was modified.
|
Examples
NSTicket thing;
DateTime lastChanged = thing.GetLastChanged();
GetNumMessages()
Declaration
Returns
Type |
Description |
Integer |
The total number of messages for this request.
|
Examples
NSTicket thing;
Integer numMessages = thing.GetNumMessages();
GetNumReplies()
Declaration
Returns
Type |
Description |
Integer |
The number of replies (messages) to the customer for this request.
|
Examples
NSTicket thing;
Integer numReplies = thing.GetNumReplies();
GetOrigin()
Declaration
Returns
Examples
NSTicket thing;
Integer origin = thing.GetOrigin();
GetOwnedBy()
Declaration
Returns
Type |
Description |
Integer |
The ID of the user who owns the ticket. 1 (system user) if the ticket is unassigned.
|
Examples
NSTicket thing;
Integer ownedBy = thing.GetOwnedBy();
GetOwnedByName()
Declaration
Returns
Type |
Description |
String |
Initials, also login name, possibly database user name.
|
Examples
NSTicket thing;
String ownedByName = thing.GetOwnedByName();
GetPersonFirstname()
Declaration
String GetPersonFirstname()
Returns
Type |
Description |
String |
First name.
|
Examples
NSTicket thing;
String personFirstname = thing.GetPersonFirstname();
GetPersonFullname()
Declaration
String GetPersonFullname()
Returns
Type |
Description |
String |
Gets the full name for the primary person (customer).
|
Examples
NSTicket thing;
String personFullname = thing.GetPersonFullname();
GetPersonLastname()
Declaration
String GetPersonLastname()
Returns
Type |
Description |
String |
Last name.
|
Examples
NSTicket thing;
String personLastname = thing.GetPersonLastname();
GetPersonMiddleName()
Declaration
String GetPersonMiddleName()
Returns
Type |
Description |
String |
Middle name or 'van' etc.
|
Examples
NSTicket thing;
String personMiddleName = thing.GetPersonMiddleName();
GetPriority()
Declaration
Returns
Type |
Description |
Integer |
The reference to the ticket_priority table.
|
Examples
NSTicket thing;
Integer priority = thing.GetPriority();
GetPriorityName()
Declaration
Returns
Type |
Description |
String |
The name of the priority.
|
Examples
NSTicket thing;
String priorityName = thing.GetPriorityName();
GetReadByCustomer()
Declaration
DateTime GetReadByCustomer()
Returns
Type |
Description |
DateTime |
The datetime for when the ticket was read by the customer.
|
Examples
NSTicket thing;
DateTime readByCustomer = thing.GetReadByCustomer();
GetReadByOwner()
Declaration
DateTime GetReadByOwner()
Returns
Type |
Description |
DateTime |
The datetime for when the ticket last was read by the owner.
|
Examples
NSTicket thing;
DateTime readByOwner = thing.GetReadByOwner();
GetReadStatus()
Declaration
Returns
Examples
NSTicket thing;
Integer readStatus = thing.GetReadStatus();
GetRealTimeSpentExternally()
Declaration
Integer GetRealTimeSpentExternally()
Returns
Type |
Description |
Integer |
The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state.
|
Examples
NSTicket thing;
Integer realTimeSpentExternally = thing.GetRealTimeSpentExternally();
GetRealTimeSpentInternally()
Declaration
Integer GetRealTimeSpentInternally()
Returns
Type |
Description |
Integer |
The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state.
|
Examples
NSTicket thing;
Integer realTimeSpentInternally = thing.GetRealTimeSpentInternally();
GetRealTimeSpentQueue()
Declaration
Integer GetRealTimeSpentQueue()
Returns
Type |
Description |
Integer |
The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state.
|
Examples
NSTicket thing;
Integer realTimeSpentQueue = thing.GetRealTimeSpentQueue();
GetRealTimeToClose()
Declaration
Integer GetRealTimeToClose()
Returns
Type |
Description |
Integer |
Same as time_to_close, but not calculated based on priority.
|
Examples
NSTicket thing;
Integer realTimeToClose = thing.GetRealTimeToClose();
GetRealTimeToReply()
Declaration
Integer GetRealTimeToReply()
Returns
Type |
Description |
Integer |
Same as time_to_reply, but not calculated based on priority.
|
Examples
NSTicket thing;
Integer realTimeToReply = thing.GetRealTimeToReply();
GetRepliedAt()
Declaration
Returns
Type |
Description |
DateTime |
The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.
|
Examples
NSTicket thing;
DateTime repliedAt = thing.GetRepliedAt();
GetSlevel()
Declaration
Returns
Examples
NSTicket thing;
Integer slevel = thing.GetSlevel();
GetTicketId()
Declaration
Returns
Type |
Description |
Integer |
The primary key (auto-incremented).
|
Examples
NSTicket thing;
Integer ticketId = thing.GetTicketId();
GetTicketStatus()
Declaration
Integer GetTicketStatus()
Returns
Type |
Description |
Integer |
User-defined ticket status.
|
Examples
NSTicket thing;
Integer ticketStatus = thing.GetTicketStatus();
GetTicketStatusDisplayValue()
Gets the display name of the ticket status.
Declaration
String GetTicketStatusDisplayValue()
Returns
Examples
NSTicket thing;
String ticketStatusDisplayValue = thing.GetTicketStatusDisplayValue();
GetTimeSpentExternally()
Declaration
Integer GetTimeSpentExternally()
Returns
Type |
Description |
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.
|
Examples
NSTicket thing;
Integer timeSpentExternally = thing.GetTimeSpentExternally();
GetTimeSpentInternally()
Declaration
Integer GetTimeSpentInternally()
Returns
Type |
Description |
Integer |
The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state.
|
Examples
NSTicket thing;
Integer timeSpentInternally = thing.GetTimeSpentInternally();
GetTimeSpentQueue()
Declaration
Integer GetTimeSpentQueue()
Returns
Type |
Description |
Integer |
The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state.
|
Examples
NSTicket thing;
Integer timeSpentQueue = thing.GetTimeSpentQueue();
GetTimeToClose()
Declaration
Returns
Type |
Description |
Integer |
The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's time frame.
|
Examples
NSTicket thing;
Integer timeToClose = thing.GetTimeToClose();
GetTimeToReply()
Declaration
Returns
Type |
Description |
Integer |
The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's time frame.
|
Examples
NSTicket thing;
Integer timeToReply = thing.GetTimeToReply();
GetTitle()
Declaration
Returns
Type |
Description |
String |
The title of the ticket.
|
Examples
NSTicket thing;
String title = thing.GetTitle();
SetActivate(DateTime)
Declaration
Void SetActivate(DateTime activate)
Parameters
Type |
Name |
Description |
DateTime |
activate |
When the ticket should be activated, if it is postponed.
|
Returns
Examples
NSTicket thing;
DateTime activate;
thing.SetActivate(activate);
SetAlertLevel(Integer)
Declaration
Void SetAlertLevel(Integer alertLevel)
Parameters
Type |
Name |
Description |
Integer |
alertLevel |
The alert level for the ticket. Matches the level value of the ticket_alert table.
|
Returns
Examples
NSTicket thing;
Integer alertLevel;
thing.SetAlertLevel(alertLevel);
SetAlertTimeout(DateTime)
Declaration
Void SetAlertTimeout(DateTime alertTimeout)
Parameters
Type |
Name |
Description |
DateTime |
alertTimeout |
The datetime for when the ticket should jump to the next alert_level.
|
Returns
Examples
NSTicket thing;
DateTime alertTimeout;
thing.SetAlertTimeout(alertTimeout);
SetAuthor(String)
Declaration
Void SetAuthor(String author)
Parameters
Type |
Name |
Description |
String |
author |
A string representing the author of the ticket (same as author of first message).
|
Returns
Examples
NSTicket thing;
String author;
thing.SetAuthor(author);
SetBaseStatus(Integer)
Declaration
Void SetBaseStatus(Integer baseStatus)
Parameters
Returns
Examples
NSTicket thing;
Integer baseStatus;
thing.SetBaseStatus(baseStatus);
SetCategory(Integer)
Declaration
Void SetCategory(Integer category)
Parameters
Type |
Name |
Description |
Integer |
category |
The ID of the category a ticket is in.
|
Returns
Examples
NSTicket thing;
Integer category;
thing.SetCategory(category);
SetCategoryFullname(String)
Declaration
Void SetCategoryFullname(String categoryFullname)
Parameters
Type |
Name |
Description |
String |
categoryFullname |
The fullname (compiled from parents' names) for this category. E.g. 'norway/product A/support'.
|
Returns
Examples
NSTicket thing;
String categoryFullname;
thing.SetCategoryFullname(categoryFullname);
SetCategoryName(String)
Declaration
Void SetCategoryName(String categoryName)
Parameters
Type |
Name |
Description |
String |
categoryName |
The (short) name of this category. E.g. 'support'.
|
Returns
Examples
NSTicket thing;
String categoryName;
thing.SetCategoryName(categoryName);
SetClosedAt(DateTime)
Declaration
Void SetClosedAt(DateTime closedAt)
Parameters
Type |
Name |
Description |
DateTime |
closedAt |
When the ticket was closed.
|
Returns
Examples
NSTicket thing;
DateTime closedAt;
thing.SetClosedAt(closedAt);
SetConnectId(Integer)
Declaration
Void SetConnectId(Integer connectId)
Parameters
Type |
Name |
Description |
Integer |
connectId |
If a ticket is connected to another ticket, this field is set to the ID of the 'master' ticket.
|
Returns
Examples
NSTicket thing;
Integer connectId;
thing.SetConnectId(connectId);
SetCreatedAt(DateTime)
Declaration
Void SetCreatedAt(DateTime createdAt)
Parameters
Type |
Name |
Description |
DateTime |
createdAt |
When the ticket was created.
|
Returns
Examples
NSTicket thing;
DateTime createdAt;
thing.SetCreatedAt(createdAt);
SetCreatedBy(Integer)
Declaration
Void SetCreatedBy(Integer createdBy)
Parameters
Type |
Name |
Description |
Integer |
createdBy |
The ID of the user who created the ticket. 1 (system user) if the ticket was created externally.
|
Returns
Examples
NSTicket thing;
Integer createdBy;
thing.SetCreatedBy(createdBy);
SetCreatedByName(String)
Declaration
Void SetCreatedByName(String createdByName)
Parameters
Type |
Name |
Description |
String |
createdByName |
Initials, also login name, possibly database user name.
|
Returns
Examples
NSTicket thing;
String createdByName;
thing.SetCreatedByName(createdByName);
SetCustId(Integer)
Declaration
Void SetCustId(Integer custId)
Parameters
Type |
Name |
Description |
Integer |
custId |
The reference to the customer. NULL or -1 if ticket is not connected to customer.
|
Returns
Examples
NSTicket thing;
Integer custId;
thing.SetCustId(custId);
SetDeadline(DateTime)
Declaration
Void SetDeadline(DateTime deadline)
Parameters
Type |
Name |
Description |
DateTime |
deadline |
Deadline for ticket.
|
Returns
Examples
NSTicket thing;
DateTime deadline;
thing.SetDeadline(deadline);
SetFirstReadByUser(DateTime)
Declaration
Void SetFirstReadByUser(DateTime firstReadByUser)
Parameters
Type |
Name |
Description |
DateTime |
firstReadByUser |
The datetime for when the ticket first was read by a user.
|
Returns
Examples
NSTicket thing;
DateTime firstReadByUser;
thing.SetFirstReadByUser(firstReadByUser);
SetFromAddress(String)
Declaration
Void SetFromAddress(String fromAddress)
Parameters
Type |
Name |
Description |
String |
fromAddress |
The from-address used when this ticket got created, e.g. by email.
|
Returns
Examples
NSTicket thing;
String fromAddress;
thing.SetFromAddress(fromAddress);
SetHasAttachment(Bool)
Declaration
Void SetHasAttachment(Bool hasAttachment)
Parameters
Type |
Name |
Description |
Bool |
hasAttachment |
Bool indicating if this ticket has one or more attachments.
|
Returns
Examples
NSTicket thing;
Bool hasAttachment;
thing.SetHasAttachment(hasAttachment);
SetLastChanged(DateTime)
Declaration
Void SetLastChanged(DateTime lastChanged)
Parameters
Type |
Name |
Description |
DateTime |
lastChanged |
The last time the ticket was modified.
|
Returns
Examples
NSTicket thing;
DateTime lastChanged;
thing.SetLastChanged(lastChanged);
SetNumMessages(Integer)
Declaration
Void SetNumMessages(Integer numMessages)
Parameters
Type |
Name |
Description |
Integer |
numMessages |
The total number of messages for this request.
|
Returns
Examples
NSTicket thing;
Integer numMessages;
thing.SetNumMessages(numMessages);
SetNumReplies(Integer)
Declaration
Void SetNumReplies(Integer numReplies)
Parameters
Type |
Name |
Description |
Integer |
numReplies |
The number of replies (messages) to the customer for this request.
|
Returns
Examples
NSTicket thing;
Integer numReplies;
thing.SetNumReplies(numReplies);
SetOrigin(Integer)
Declaration
Void SetOrigin(Integer origin)
Parameters
Returns
Examples
NSTicket thing;
Integer origin;
thing.SetOrigin(origin);
SetOwnedBy(Integer)
Declaration
Void SetOwnedBy(Integer ownedBy)
Parameters
Type |
Name |
Description |
Integer |
ownedBy |
The ID of the user who owns the ticket. 1 (system user) if the ticket is unassigned.
|
Returns
Examples
NSTicket thing;
Integer ownedBy;
thing.SetOwnedBy(ownedBy);
SetOwnedByName(String)
Declaration
Void SetOwnedByName(String ownedByName)
Parameters
Type |
Name |
Description |
String |
ownedByName |
Initials, also login name, possibly database user name.
|
Returns
Examples
NSTicket thing;
String ownedByName;
thing.SetOwnedByName(ownedByName);
SetPersonFirstname(String)
Declaration
Void SetPersonFirstname(String personFirstname)
Parameters
Type |
Name |
Description |
String |
personFirstname |
First name.
|
Returns
Examples
NSTicket thing;
String personFirstname;
thing.SetPersonFirstname(personFirstname);
SetPersonFullname(String)
Sets the full name for the primary person (customer)
Declaration
Void SetPersonFullname(String personFullname)
Parameters
Type |
Name |
Description |
String |
personFullname |
|
Returns
Examples
NSTicket thing;
String personFullname;
thing.SetPersonFullname(personFullname);
SetPersonLastname(String)
Declaration
Void SetPersonLastname(String personLastname)
Parameters
Type |
Name |
Description |
String |
personLastname |
Last name.
|
Returns
Examples
NSTicket thing;
String personLastname;
thing.SetPersonLastname(personLastname);
SetPersonMiddleName(String)
Declaration
Void SetPersonMiddleName(String personMiddleName)
Parameters
Type |
Name |
Description |
String |
personMiddleName |
Middle name or 'van' etc.
|
Returns
Examples
NSTicket thing;
String personMiddleName;
thing.SetPersonMiddleName(personMiddleName);
SetPriority(Integer)
Declaration
Void SetPriority(Integer priority)
Parameters
Type |
Name |
Description |
Integer |
priority |
The reference to the ticket_priority table.
|
Returns
Examples
NSTicket thing;
Integer priority;
thing.SetPriority(priority);
SetPriorityName(String)
Declaration
Void SetPriorityName(String priorityName)
Parameters
Type |
Name |
Description |
String |
priorityName |
The name of the priority.
|
Returns
Examples
NSTicket thing;
String priorityName;
thing.SetPriorityName(priorityName);
SetReadByCustomer(DateTime)
Declaration
Void SetReadByCustomer(DateTime readByCustomer)
Parameters
Type |
Name |
Description |
DateTime |
readByCustomer |
The datetime for when the ticket was read by the customer.
|
Returns
Examples
NSTicket thing;
DateTime readByCustomer;
thing.SetReadByCustomer(readByCustomer);
SetReadByOwner(DateTime)
Declaration
Void SetReadByOwner(DateTime readByOwner)
Parameters
Type |
Name |
Description |
DateTime |
readByOwner |
The datetime for when the ticket last was read by the owner.
|
Returns
Examples
NSTicket thing;
DateTime readByOwner;
thing.SetReadByOwner(readByOwner);
SetReadStatus(Integer)
Declaration
Void SetReadStatus(Integer readStatus)
Parameters
Type |
Name |
Description |
Integer |
readStatus |
Whether the owner has read the ticket or not (red, yellow, green). See TicketReadStatus.
|
Returns
Examples
NSTicket thing;
Integer readStatus;
thing.SetReadStatus(readStatus);
SetRealTimeSpentExternally(Integer)
Declaration
Void SetRealTimeSpentExternally(Integer realTimeSpentExternally)
Parameters
Type |
Name |
Description |
Integer |
realTimeSpentExternally |
The total time (seconds) within 24x7 the ticket has been in a external waiting status (configurable), not including current state.
|
Returns
Examples
NSTicket thing;
Integer realTimeSpentExternally;
thing.SetRealTimeSpentExternally(realTimeSpentExternally);
SetRealTimeSpentInternally(Integer)
Declaration
Void SetRealTimeSpentInternally(Integer realTimeSpentInternally)
Parameters
Type |
Name |
Description |
Integer |
realTimeSpentInternally |
The total time (seconds) within 24x7 the ticket has been in an open status (configurable), not including current state.
|
Returns
Examples
NSTicket thing;
Integer realTimeSpentInternally;
thing.SetRealTimeSpentInternally(realTimeSpentInternally);
SetRealTimeSpentQueue(Integer)
Declaration
Void SetRealTimeSpentQueue(Integer realTimeSpentQueue)
Parameters
Type |
Name |
Description |
Integer |
realTimeSpentQueue |
The total time (seconds) within 24x7 hours the ticket has been in a queue status, not including current state.
|
Returns
Examples
NSTicket thing;
Integer realTimeSpentQueue;
thing.SetRealTimeSpentQueue(realTimeSpentQueue);
SetRealTimeToClose(Integer)
Declaration
Void SetRealTimeToClose(Integer realTimeToClose)
Parameters
Type |
Name |
Description |
Integer |
realTimeToClose |
Same as time_to_close, but not calculated based on priority.
|
Returns
Examples
NSTicket thing;
Integer realTimeToClose;
thing.SetRealTimeToClose(realTimeToClose);
SetRealTimeToReply(Integer)
Declaration
Void SetRealTimeToReply(Integer realTimeToReply)
Parameters
Type |
Name |
Description |
Integer |
realTimeToReply |
Same as time_to_reply, but not calculated based on priority.
|
Returns
Examples
NSTicket thing;
Integer realTimeToReply;
thing.SetRealTimeToReply(realTimeToReply);
SetRepliedAt(DateTime)
Declaration
Void SetRepliedAt(DateTime repliedAt)
Parameters
Type |
Name |
Description |
DateTime |
repliedAt |
The datetime for when the ticket was replied to. I.e. the first external message added to the ticket.
|
Returns
Examples
NSTicket thing;
DateTime repliedAt;
thing.SetRepliedAt(repliedAt);
SetSlevel(Integer)
Declaration
Void SetSlevel(Integer slevel)
Parameters
Returns
Examples
NSTicket thing;
Integer slevel;
thing.SetSlevel(slevel);
SetTicketId(Integer)
Declaration
Void SetTicketId(Integer ticketId)
Parameters
Type |
Name |
Description |
Integer |
ticketId |
The primary key (auto-incremented).
|
Returns
Examples
NSTicket thing;
Integer ticketId;
thing.SetTicketId(ticketId);
SetTicketStatus(Integer)
Declaration
Void SetTicketStatus(Integer ticketStatus)
Parameters
Type |
Name |
Description |
Integer |
ticketStatus |
User defined ticket status.
|
Returns
Examples
NSTicket thing;
Integer ticketStatus;
thing.SetTicketStatus(ticketStatus);
SetTicketStatusDisplayValue(String)
Gets the display name of the ticket status.
Declaration
Void SetTicketStatusDisplayValue(String ticketStatusDisplayValue)
Parameters
Type |
Name |
Description |
String |
ticketStatusDisplayValue |
|
Returns
Examples
NSTicket thing;
String ticketStatusDisplayValue;
thing.SetTicketStatusDisplayValue(ticketStatusDisplayValue);
SetTimeSpentExternally(Integer)
Declaration
Void SetTimeSpentExternally(Integer timeSpentExternally)
Parameters
Type |
Name |
Description |
Integer |
timeSpentExternally |
The total time (seconds) within the priority's office hours the ticket has been in a external waiting status (configurable), not including current state.
|
Returns
Examples
NSTicket thing;
Integer timeSpentExternally;
thing.SetTimeSpentExternally(timeSpentExternally);
SetTimeSpentInternally(Integer)
Declaration
Void SetTimeSpentInternally(Integer timeSpentInternally)
Parameters
Type |
Name |
Description |
Integer |
timeSpentInternally |
The total time (seconds) within the priority's office hours the ticket has been in an open status (configurable), not including current state.
|
Returns
Examples
NSTicket thing;
Integer timeSpentInternally;
thing.SetTimeSpentInternally(timeSpentInternally);
SetTimeSpentQueue(Integer)
Declaration
Void SetTimeSpentQueue(Integer timeSpentQueue)
Parameters
Type |
Name |
Description |
Integer |
timeSpentQueue |
The total time (seconds) within the priority's office hours the ticket has been in a queue status, not including current state.
|
Returns
Examples
NSTicket thing;
Integer timeSpentQueue;
thing.SetTimeSpentQueue(timeSpentQueue);
SetTimeToClose(Integer)
Declaration
Void SetTimeToClose(Integer timeToClose)
Parameters
Type |
Name |
Description |
Integer |
timeToClose |
The time (minutes) between when the ticket was created and when it was closed. Calculated based on priority's time frame.
|
Returns
Examples
NSTicket thing;
Integer timeToClose;
thing.SetTimeToClose(timeToClose);
SetTimeToReply(Integer)
Declaration
Void SetTimeToReply(Integer timeToReply)
Parameters
Type |
Name |
Description |
Integer |
timeToReply |
The time (minutes) between when the ticket was created and when it was replied to. Calculated based on priority's time frame.
|
Returns
Examples
NSTicket thing;
Integer timeToReply;
thing.SetTimeToReply(timeToReply);
SetTitle(String)
Declaration
Void SetTitle(String title)
Parameters
Type |
Name |
Description |
String |
title |
The title of the ticket.
|
Returns
Examples
NSTicket thing;
String title;
thing.SetTitle(title);