[rt-users] are Attachment records necessary?

MAS rt at mas.ml1.net
Mon Nov 17 07:49:36 EST 2003


Hi Jim,

Thanks for your suggestion.

--On 14 November 2003 11:50 -0600 Jim Rowan <jim.rowan at starcore-dsp.com>
wrote:

> You might want to look at one of the RT import scripts for guidance.  I
> did something quite similar to what you are doing and found that using
> it as a basis for my custom import script was far more effective than
> writing it from scratch.  (Notwithstanding the fact that I did end up
> replacing most of it.)

That's what I'm doing, working with F2Wcvs-to-rt-3_0 as a basis and
modifying it to suit my needs. (any others you could recommend? this is
the only import script for RT3 I've found so far.) And as you said, I'm
finding that I'm having to replace most of it, but it's a good place to
start. But the question is...

> You can definitely use the existing classes to create things with 
> specific ticket numbers.

How do I do this? I don't know whether it's just me, but I'm finding the
RT class structure really difficult to get my head around, and I haven't
seen any way to do what you suggest. Obviously that would be great, but
on the other hand I think it will be faster just to use DBI and insert
stuff into the database myself than trawl through the code and
inheiritances trying to figure out what's doing what.

Also, the script I'm working from creates Transactions and Attachments
separately as well, so that still doesn't answer my initial question of
whether Attachments _have_ to be created for each Create transaction or
are optional.

Any more suggestions?

Thanks!

michael







> 
> Jim Rowan
> 





More information about the rt-users mailing list