[rt-users] Perl API Help

Mathew theillien at yahoo.com
Mon Jan 29 11:10:13 EST 2007


I've been looking at that myself.  However some things just aren't clear.

For example:  I need to create a script that pulls from the database for
each user the time spent on each customer (stored in a CF).  So this
requires me to pull the user, the customer, all ticket transactions
associated with both, and the timespent for each transaction.

I've been looking at the lib/RT directory but have not found a clear
line of sight that leads to this.

This is just an example, mind you.  Solving this one problem might shed
a bit of light on the next but it will be just as daunting sifting
through the code to find the next solution.

I think it would be helpful to have some documentation outside of the
perldocs for each .pm which provides more insight using example code
with real world problems such as the one above.

Mathew

Roy El-Hames wrote:
> Matt;
> I found the best resource is in /opt/rt3/lib/RT/
> Find the appropriate module (Users_ , Tickets_ blah ) copy and hack away ..
> Roy
> 
> Mathew wrote:
>> While the book has done me wonders in learning to use and configure RT,
>> it has done little for me in the realm of the codebase.  I'm hoping the
>> training in Boston helps in this regard :)
>>
>> Mathew
>>
>> Jesse Vincent wrote:
>>  
>>> On Mon, Jan 29, 2007 at 09:41:08AM -0600, John Arends wrote:
>>>    
>>>> I'm somewhat new to perl, but I'm starting to pick up a bit of it.
>>>> There are a bunch of custom tasks I want to do to integrate RT with
>>>> some other systems. I have been looking for some documentation, but
>>>> what I saw in the RT wiki was very limited for someone in my position.
>>>>
>>>> Can anyone point me towards some documentation that can give me a
>>>> start at writing some of my own scripts? I would like to see some
>>>> basics on modifying users, groups, tickets, etc and I can work from
>>>> there.
>>>>       
>>> You might want to start with the O'Reilly book...
>>>
>>>    
>>>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>>>> Buy a copy at http://rtbook.bestpractical.com
>>>>
>>>>       
>>
>> _______________________________________________
>> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>
>> Community help: http://wiki.bestpractical.com
>> Commercial support: sales at bestpractical.com
>>
>>
>> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
>> Buy a copy at http://rtbook.bestpractical.com
>>
>>   
> 
> 
> 




More information about the rt-users mailing list