Hi Kevin,<br><br>Thanks for the info :)<br><br>I've done some shameless copying of Ruslan's plugin and created my own out of it.<br>Using his plugin as an example was plenty :)<br><br>It seems that Ruslan's plugin and this one can work together quite nicely, you just need to figure out which one you want to load first. In my case I want the queue change to showup first and then the custom fields. Thus when you load the plugin make sure that the QueueChangeOnUpdate is listed before the CustomFieldsOnUpdate plugin in your RT_SiteConfig.pm.<br>
<br>The part that might be difficult for myself a.t.m. is creating an official plugin out of it and adding it to the Perl repo.<br>I did however manage to make simple bash script out of it which for now kinda works for me :)<br>
<br>You can check the results in the attatchment.<br>The script assumes that you have RT installed under /opt/rt4, so if it isn't then you may need to edit the paths a little.<br><br>I would however like to know how I can add this to Perl, so that it's a little more like a normal plugin :) (need to find some time to figure out how to do all of that, I'm not that brilliant with Perl, let alone with actually adding stuff to the repo)<br>
<br><br clear="all">-- Bart<br>
<br><br><div class="gmail_quote">Op 14 februari 2012 17:44 schreef Kevin Falcone <span dir="ltr"><<a href="mailto:falcone@bestpractical.com">falcone@bestpractical.com</a>></span> het volgende:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tue, Feb 14, 2012 at 07:44:08AM +0100, Bart wrote:<br>
> Now to make a seperate plugin out of it :) Not sure if I'm able to make something for the CPAN<br>
> repository, but I'll see how far I can get. (first I'd like to see how this works as a<br>
> seperate plugin along with to the CustomFieldsOnUpdate plugin).<br>
<br>
</div>These days, I usually install Dist::Zilla::MintingProfile::RTx and run<br>
dzil -P RTx My-Custom-RT-Module and then put it in source control and<br>
edit away. I realize that may be a slightly higher barrier to entry<br>
than you want, and you can usually get away with judicious renaming /<br>
copying from an existing module. The most common things you'll need<br>
to touch include lib/RT/Extension/ModuleName.pm (renaming the file and<br>
the package line) and also updating the package line in Makefile.PL.<br>
<br>
If you're familiar with building a normal CPAN extension, the only<br>
real magic in an RT extension is the RTx line in Makefile.PL. If<br>
you're not familiar with building CPAN extensions, there's a bit more<br>
framework to wrap your head around.<br>
<span class="HOEnZb"><font color="#888888"><br>
-kevin<br>
</font></span><br>--------<br>
RT Training Sessions (<a href="http://bestpractical.com/services/training.html" target="_blank">http://bestpractical.com/services/training.html</a>)<br>
* Boston — March 5 & 6, 2012<br></blockquote></div><br>