Show / Hide Table of Contents

Class NSTicketStatusEntity

Entity for a ticket status. This entity describes the meta data for a ticket status, and provides special operations on it.

Syntax

Constructors

NSTicketStatusEntity()

Initializes a new instance of the NSTicketStatusEntity class.

Introduced or updated in version: 8.5R08

Declaration
NSTicketStatusEntity

Methods

GetName()

Introduced or updated in version: 8.5R08

Declaration
String GetName()
Returns
Type Description
String

Name of user defined ticket status.

Examples
NSTicketStatusEntity thing;
String name = thing.GetName();

GetNoEmailReopen()

Introduced or updated in version: 8.5R08

Declaration
Bool GetNoEmailReopen()
Returns
Type Description
Bool

Whether inbound emails can reopen requests with this status or not.

Examples
NSTicketStatusEntity thing;
Bool noEmailReopen = thing.GetNoEmailReopen();

GetStatus()

Introduced or updated in version: 8.5R08

Declaration
Integer GetStatus()
Returns
Type Description
Integer

The classic ticket status (active/closed/postponed/deleted). See TicketBaseStatus.

Examples
NSTicketStatusEntity thing;
Integer status = thing.GetStatus();

GetTicketStatusId()

Introduced or updated in version: 8.5R08

Declaration
Integer GetTicketStatusId()
Returns
Type Description
Integer

The primary key (auto-incremented).

Examples
NSTicketStatusEntity thing;
Integer ticketStatusId = thing.GetTicketStatusId();

GetTimeCounter()

Introduced or updated in version: 8.5R08

Declaration
Integer GetTimeCounter()
Returns
Type Description
Integer

Which field in ticket we count time spent on (queue, internal, external). See TicketStatusTimeCounter.

Examples
NSTicketStatusEntity thing;
Integer timeCounter = thing.GetTimeCounter();

SetName(String)

Introduced or updated in version: 8.5R08

Declaration
Void SetName(String name)
Parameters
Type Name Description
String name

Name of user defined ticket status.

Returns
Type Description
Void
Examples
NSTicketStatusEntity thing;
String name;
thing.SetName(name);

SetNoEmailReopen(Bool)

Introduced or updated in version: 8.5R08

Declaration
Void SetNoEmailReopen(Bool noEmailReopen)
Parameters
Type Name Description
Bool noEmailReopen

Whether inbound emails can reopen requests with this status or not.

Returns
Type Description
Void
Examples
NSTicketStatusEntity thing;
Bool noEmailReopen;
thing.SetNoEmailReopen(noEmailReopen);

SetStatus(Integer)

Introduced or updated in version: 8.5R08

Declaration
Void SetStatus(Integer status)
Parameters
Type Name Description
Integer status

The classic ticket status (active/closed/postponed/deleted). See TicketBaseStatus.

Returns
Type Description
Void
Examples
NSTicketStatusEntity thing;
Integer status;
thing.SetStatus(status);

SetTicketStatusId(Integer)

Introduced or updated in version: 8.5R08

Declaration
Void SetTicketStatusId(Integer ticketStatusId)
Parameters
Type Name Description
Integer ticketStatusId

The primary key (auto-incremented).

Returns
Type Description
Void
Examples
NSTicketStatusEntity thing;
Integer ticketStatusId;
thing.SetTicketStatusId(ticketStatusId);

SetTimeCounter(Integer)

Introduced or updated in version: 8.5R08

Declaration
Void SetTimeCounter(Integer timeCounter)
Parameters
Type Name Description
Integer timeCounter

Which field in ticket we count time spent on (queue, internal, external). See TicketStatusTimeCounter.

Returns
Type Description
Void
Examples
NSTicketStatusEntity thing;
Integer timeCounter;
thing.SetTimeCounter(timeCounter);
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top