ClassObjectsMethods: Difference between revisions
Jump to navigation
Jump to search
(→TransactionObj: Indent fixed in nowiki elements, CreatorObj added (not sure if the CreatorObj should get a separate headline)) |
|||
Line 14: | Line 14: | ||
<nowiki>* Create: when the transaction is a creation of the ticket | <nowiki>* Create: when the transaction is a creation of the ticket | ||
* Resolve: when the transacion is a resolution of the ticket | |||
* Set | |||
* CustomField | |||
* EmailRecord | |||
* Comment | |||
* Status | |||
* AddLink | |||
* DeleteLink | |||
* Take | |||
* Give | |||
* Told | |||
* Correspond | |||
* AddWatcher | |||
* Steal | |||
* CommentEmailRecord | |||
</nowiki> | |||
* Field: | * Field: | ||
<nowiki>* Password | <nowiki>* Password | ||
* Status | |||
* RefersTo | |||
* Owner | |||
* Told | |||
* Description | |||
* Priority | |||
* TimeLeft | |||
* AdminCc | |||
* DependsOn | |||
* Lang | |||
* DependedOnBy | |||
* Subject | |||
* HasComponent | |||
* ComponentOf | |||
* TimeEstimated | |||
* MergedInto | |||
* ReferredToBy | |||
* Starts | |||
* Started | |||
* Due | |||
* Requestor | |||
* FinalPriority | |||
* Queue | |||
</nowiki> | </nowiki> | ||
* CreatorObj: | |||
<nowiki>* Name | |||
* RealName | |||
* CorrespondAddress | |||
* (To be completed) | |||
</nowiki> | |||
=== TicketObj === | === TicketObj === |
Revision as of 13:51, 4 April 2011
Class, Objects and Methods - RT
In this page, We will discuss all methods and objects implemented at RT. We pretend to help on the development of the scrips.
$self:
TransactionObj
This object represents one transaction of the RT (something likes create a ticket, comment a ticket, etc).
- TransactionObj Properties:*
- Type: returns the transaction's type. Values:
* Create: when the transaction is a creation of the ticket * Resolve: when the transacion is a resolution of the ticket * Set * CustomField * EmailRecord * Comment * Status * AddLink * DeleteLink * Take * Give * Told * Correspond * AddWatcher * Steal * CommentEmailRecord
- Field:
* Password * Status * RefersTo * Owner * Told * Description * Priority * TimeLeft * AdminCc * DependsOn * Lang * DependedOnBy * Subject * HasComponent * ComponentOf * TimeEstimated * MergedInto * ReferredToBy * Starts * Started * Due * Requestor * FinalPriority * Queue
- CreatorObj:
* Name * RealName * CorrespondAddress * (To be completed)
TicketObj
This object represents the ticket at a transaction.
- TicketObj Properties:*
- Priority: priority value of the ticket
- QueueObj: Queue Object
- Name: Name of the queue
- (More to be added)
Usage example in a scrip:
if ($self->TicketObj->QueueObj->Name eq 'Incident') { # do something }
Execute code (do something) if Queue Name equals "Incident".