% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
Replacement for the one in RT_External so that we can access custom fields properly. Accepts a hashref with the following parameters:
number - custnum/svcnum
limit
priority
status
queueid
resolved - only return tickets resolved after this timestamp
Class method. Creates a ticket. If there is an error, returns the scalar error, otherwise returns the newly created RT::Ticket object.
Accepts the following options:
Queue name or Id
Ticket subject
Requestor email address or arrayref of addresses
Cc: email address or arrayref of addresses
Ticket message
MIME type to use for message. Defaults to text/plain. Specifying text/html can be useful to use HTML markup in message.
Customer number (see FS::cust_main) to associate with ticket.
Service number (see FS::cust_svc) to associate with ticket. Will also associate the customer who has this service (unless the service is unlinked).
Class method. Retrieves a ticket. If there is an error, returns the scalar error. Otherwise, currently returns a slightly tricky data structure containing the ticket's attributes, a list of the linked customers, each transaction's content, description, and create time.
Accepts the following options:
The ticket id
Class method. Retrieve the RT::Ticket object with the specified ticket_id. If custnum is supplied, will also check that the object is a member of that customer. If there is no ticket or the custnum check fails, returns nothing. The meaning of that case is "to this customer, the ticket does not exist".
Options:
Class method. Correspond on a ticket. If there is an error, returns the scalar error. Otherwise, returns the transaction id, error message, and RT::Transaction object.
Accepts the following options:
Retrieve a list of queues. Pass the name of an RT access control right, such as 'CreateTicket', to return only queues on which the current user has that right. Otherwise this will return all queues with the 'SeeQueue' right.
Returns the configured self-service priority field.
Returns a hash of custom field names and descriptions.
Accepts the following options:
lookuptype - limit results to this lookuptype
valuetype - limit results to this valuetype
Fields must be visible to CurrentUser.
Hey! The above document had some coding errors, which are explained below:
'=item' outside of any '=over'
=over without closing =back