I’m searching for some information on writing custom scrips and it seemed
like numerous others are as well so I thought I’d post my search results here:
- The most detailed information I’ve found on this mailing list was a post
by Peter Burkholder (Thanks Peter!!!) which detail two simple but very useful
custom scrips. Please see the following post for more details:
I put the autoassign one in my installation (RT 3.0.2) and it worked great.
(the only slight annoyance is if you are doing a web correspondence/reply when the
form comes up it give the current owner as the default (better default might be
"-" which when tested appears to leave the owner unchanged.). So then what
happens is when you submit the form the scrip executes first and changes the
owner from nobody to the person giving the correspondence but then the form
changes the owner back to what the default was (if left unchanged in the form)
which if it was “nobody” leaves you where you started. Granted all you have to do is
change the form by hand but I can see this tripping up lazy users, so you may want
to change the form to come up as default “-”)
- Jesse gave some quick help:
2a)Check out his (and Robert Spier) tutorial “Embracing and Extending RT” at OSCON.
But of course I couldn’t go and neither can you cause it’s over. From a google
search it looks like it was very well received (And it “SOLD OUT” at OSCON).
Congrats Jesse and Robert!
If Jesse is reading this, is there any future plan to make the information from
the tutorial available either online or at future conferences?
2b) look at the approval scrips in the etc/initialdata
I haven’t done anything with this yet, but plan to.
- And finally the obvious, get your fingers dirty and check out the RT API through
perldoc and http://fsck.com/rtfm for how this was done in RT2 as well
as the RT2 contributed code: http://www.fsck.com/data/pub/rt/contrib/2.0/
(But you may trip over some diff’s between RT2 and RT3 API).
This was the most helpful stuff I’ve found by looking back into the rt-users
mailing list from now till April 2003. I’m sure I’ve probably missed some other
helpful advice (I’m sure you’ll let me hear about it).
I hope this is helpful to those still looking for info. and of course I would be
grateful if anyone else has examples or info.