RT::Queue - an RT Queue object
use RT::Queue;
An RT queue object.
Arguments: ARGS is a hash of named parameters. Valid parameters are:
Name (required)
Description
CorrespondAddress
CommentAddress
If you pass the ACL check, it creates the queue and returns its queue id.
Takes either a numerical id or a textual Name and loads the specified queue.
Takes a queue name. Returns true if it's an ok name for a new queue. Returns undef if there's already a queue by that name.
Returns an RT::Templates object of all of this queue's templates.
Load the Ticket Custom Field applied to this Queue named NAME. Does not load Global custom fields.
Returns an RT::CustomFields object containing all global and queue-specific ticket custom fields.
Returns an RT::CustomFields object containing all global and queue-specific transaction custom fields.
Returns an RT::CustomRoles object containing all queue-specific roles.
Returns a list of the names of the various role group types for Queues, excluding ones used only for ACLs such as Requestor and Owner. If you want them, see "Roles".
Returns whether the passed-in type is a manageable role group type.
Applies access control checking, then calls "AddRoleMember" in RT::Record::Role::Roles. Additionally, Email
is accepted as an alternative argument name for User
.
Returns a tuple of (status, message).
Applies access control checking, then calls "DeleteRoleMember" in RT::Record::Role::Roles. Additionally, Email
is accepted as an alternative argument name for User
.
Returns a tuple of (status, message).
returns String: All queue AdminCc email addresses as a string
returns String: All queue Ccs as a string of email addresses
Takes nothing. Returns an RT::Group object which contains this Queue's Ccs. If the user doesn't have "ShowQueue" permission, returns an empty group
Takes nothing. Returns an RT::Group object which contains this Queue's AdminCcs. If the user doesn't have "ShowQueue" permission, returns an empty group
Takes a param hash with the attributes Type and PrincipalId
Type is one of Requestor, Cc, AdminCc and Owner
PrincipalId is an RT::Principal id
Returns true if that principal is a member of the group Type for this queue
Takes an RT::Principal id. Returns true if the principal is a requestor of the current queue.
Takes an RT::Principal id. Returns true if the principal is a requestor of the current queue.
Returns true if the current user can see the queue, using SeeQueue
Returns true if the current user can create a new queue, using AdminQueue.
Returns true if the current user can modify the queue, using AdminQueue.
Returns the current value of id. (In the database, id is stored as int(11).)
Returns the current value of Name. (In the database, Name is stored as varchar(200).)
Set Name to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Name will be stored as a varchar(200).)
Returns the current value of Description. (In the database, Description is stored as varchar(255).)
Set Description to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Description will be stored as a varchar(255).)
Returns the current value of CorrespondAddress. (In the database, CorrespondAddress is stored as varchar(120).)
Set CorrespondAddress to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, CorrespondAddress will be stored as a varchar(120).)
Returns the current value of CommentAddress. (In the database, CommentAddress is stored as varchar(120).)
Set CommentAddress to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, CommentAddress will be stored as a varchar(120).)
Returns the current value of Lifecycle. (In the database, Lifecycle is stored as varchar(32).)
Set Lifecycle to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Lifecycle will be stored as a varchar(32).)
Returns the current value of SubjectTag. (In the database, SubjectTag is stored as varchar(120).)
Set SubjectTag to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, SubjectTag will be stored as a varchar(120).)
Returns the current value of SortOrder. (In the database, SortOrder is stored as int(11).)
Returns the current value of Creator. (In the database, Creator is stored as int(11).)
Returns the current value of Created. (In the database, Created is stored as datetime.)
Returns the current value of LastUpdatedBy. (In the database, LastUpdatedBy is stored as int(11).)
Returns the current value of LastUpdated. (In the database, LastUpdated is stored as datetime.)
Returns the current value of Disabled. (In the database, Disabled is stored as smallint(6).)
Set Disabled to VALUE. Returns (1, 'Status message') on success and (0, 'Error Message') on failure. (In the database, Disabled will be stored as a smallint(6).)
← Back to index