Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-13 Thread Kevin Falcone
On Mon, Aug 11, 2014 at 11:55:00AM -0400, Michael Mol wrote: Oh, that's good to know! I searched for at least an hour trying to find that precise piece of information. It is all over the mailing list archives, answered at last monthly these days. It should also be in the wiki. ### Begin

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-13 Thread Michael Mol
On Wed, Aug 13, 2014 at 9:44 AM, Kevin Falcone falc...@bestpractical.com wrote: On Mon, Aug 11, 2014 at 11:55:00AM -0400, Michael Mol wrote: Oh, that's good to know! I searched for at least an hour trying to find that precise piece of information. It is all over the mailing list archives,

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-13 Thread Kevin Falcone
The best I can say is that I *loathe* having to ask questions of mailing lists and IRC channels, as I expect to get answers like this. I seriously hate getting replies intoning that the information is readily available, so I do the best I can using Google and reading all the available

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-13 Thread Michael Mol
On Wed, Aug 13, 2014 at 10:51 AM, Kevin Falcone falc...@bestpractical.com wrote: The best I can say is that I *loathe* having to ask questions of mailing lists and IRC channels, as I expect to get answers like this. I seriously hate getting replies intoning that the information is readily

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-11 Thread Kevin Falcone
On Thu, Aug 07, 2014 at 02:00:01PM -0400, Michael Mol wrote: * Scrip re-ordering appears to be a feature of the 4.2 line of RT. I'm running the vendor packages of RT 4 on Ubuntu 14.04. Nope. On RT 4.0, which is what I assume you mean by vendor packages RT 4 on Ubuntu 14.04 you order scrips by

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-11 Thread Michael Mol
On Mon, Aug 11, 2014 at 11:09 AM, Kevin Falcone falc...@bestpractical.com wrote: On Thu, Aug 07, 2014 at 02:00:01PM -0400, Michael Mol wrote: * Scrip re-ordering appears to be a feature of the 4.2 line of RT. I'm running the vendor packages of RT 4 on Ubuntu 14.04. Nope. On RT 4.0, which is

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-11 Thread Bryon Baker
: Monday, August 11, 2014 10:09 AM To: rt-users@lists.bestpractical.com Subject: Re: [rt-users] Change ticket subject before first outgoing correspondence. On Thu, Aug 07, 2014 at 02:00:01PM -0400, Michael Mol wrote: * Scrip re-ordering appears to be a feature of the 4.2 line of RT. I'm running

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-11 Thread Michael Mol
On Mon, Aug 11, 2014 at 1:21 PM, Bryon Baker bba...@copesan.com wrote: I have a question related to this thread. Kevin you mention that scrips fire in order of name so does that mean when the order is set for a queue this is ignored? If so what is the purpose of the Move Up, Down for the

[rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Michael Mol
So I have a scrip which runs at at the TransactionCreate stage for a queue, checks the subject and the body, and then rewrites the subject to something informative. It works; when I look at the ticket for inbound emails matching the condition, the subject is precisely what I want it to be.

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Alex Peters
You can adjust the order in which scrips run by moving them up and down in the list. I'm guessing that both scrips have the on create condition. Simply swap their order on the queue's Scrips page (or the global one if necessary), and I believe everything should work as you expect. On 7 August

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Alex Peters
Actually, I'm second-guessing my (untested) advice now because I suspect that both scrips would run on the initial transaction—that is, the emailing scrip might not necessarily pick up on the subject change because that would be a different transaction. I wonder whether both moving the

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Kevin Falcone
On Fri, Aug 08, 2014 at 01:00:16AM +1000, Alex Peters wrote: I wonder whether both moving the subject-renaming scrip to execute first, and  modifying the emailing scrip to run at the batch stage might solve your problem. While it's possible to alter the Autoreply template to fetch the newer

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Michael Mol
On Thu, Aug 7, 2014 at 12:39 PM, Kevin Falcone falc...@bestpractical.com wrote: On Fri, Aug 08, 2014 at 01:00:16AM +1000, Alex Peters wrote: I wonder whether both moving the subject-renaming scrip to execute first, and modifying the emailing scrip to run at the batch stage might solve your

Re: [rt-users] Change ticket subject before first outgoing correspondence.

2014-08-07 Thread Michael Mol
On Thu, Aug 7, 2014 at 2:00 PM, Michael Mol mike...@gmail.com wrote: [snip] ### Begin snippet # Find the message from transactionobj-content # Set the subject to the message by using ticketobj-SetSubject my $body = $self-TransactionObj-Content; my @lines = split(m/\n/, $body); my $trapID