Re: [rt-users] A little Scrip help

2009-02-26 Thread Potla, Ashish Bassaliel


From: Potla, Ashish Bassaliel
Sent: Thursday, February 26, 2009 5:59 PM
To: Aaron Guise
Subject: RE: [rt-users] A little Scrip help

Is the scrip set to 'Transaction Batch' or 'Transaction Create'?
Set it to Transaction Batch.

-Ashish

From: rt-users-boun...@lists.bestpractical.com 
[rt-users-boun...@lists.bestpractical.com] On Behalf Of Aaron Guise 
[aa...@guise.net.nz]
Sent: Thursday, February 26, 2009 4:02 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] A little Scrip help

Hi,

I have implemented a scrip to notify the owner in the event someone else merges 
data into one of their tickets.  All works well but alas it actually sends the 
notification twice.  There is probably a real simple answer but it is baffling 
me.  Have just ignored it the last few months but now I am a little beyond that.

The scrip used is noted below;

my $txn = $self-TransactionObj;
return undef unless $txn-Type =~ /^AddLink$/i;
return undef unless $txn-Field =~ /^MergedInto$/i;
return 1;

Any assistance in stopping this will be greatly appreciated.

--
Regards

Aaron
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] A little Scrip help

2009-02-26 Thread Aaron Guise
If set to transaction batch which is marked Transaction Batch(Disabled) it
seems the script is just disabled as no email is sent.

On Fri, Feb 27, 2009 at 1:32 AM, Potla, Ashish Bassaliel 
c_apo...@qualcomm.com wrote:


 
 From: Potla, Ashish Bassaliel
 Sent: Thursday, February 26, 2009 5:59 PM
 To: Aaron Guise
 Subject: RE: [rt-users] A little Scrip help

 Is the scrip set to 'Transaction Batch' or 'Transaction Create'?
 Set it to Transaction Batch.

 -Ashish
 
 From: rt-users-boun...@lists.bestpractical.com [
 rt-users-boun...@lists.bestpractical.com] On Behalf Of Aaron Guise [
 aa...@guise.net.nz]
 Sent: Thursday, February 26, 2009 4:02 PM
 To: rt-users@lists.bestpractical.com
 Subject: [rt-users] A little Scrip help

 Hi,

 I have implemented a scrip to notify the owner in the event someone else
 merges data into one of their tickets.  All works well but alas it actually
 sends the notification twice.  There is probably a real simple answer but it
 is baffling me.  Have just ignored it the last few months but now I am a
 little beyond that.

 The scrip used is noted below;

 my $txn = $self-TransactionObj;
 return undef unless $txn-Type =~ /^AddLink$/i;
 return undef unless $txn-Field =~ /^MergedInto$/i;
 return 1;

 Any assistance in stopping this will be greatly appreciated.

 --
 Regards

 Aaron
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com


 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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Re: [rt-users] A little Scrip help

2009-02-26 Thread Kenneth Crocker
Aaron,


You need to turn on TransactionBatch in your RT_SiteConfig.pm file in 
/RTHOME/etc directory. That should allow you to use that stage option.


Kenn
LBNL

On 2/26/2009 10:33 AM, Aaron Guise wrote:
 If set to transaction batch which is marked Transaction Batch(Disabled) 
 it seems the script is just disabled as no email is sent.
 
 On Fri, Feb 27, 2009 at 1:32 AM, Potla, Ashish Bassaliel 
 c_apo...@qualcomm.com mailto:c_apo...@qualcomm.com wrote:
 
 
 
 From: Potla, Ashish Bassaliel
 Sent: Thursday, February 26, 2009 5:59 PM
 To: Aaron Guise
 Subject: RE: [rt-users] A little Scrip help
 
 Is the scrip set to 'Transaction Batch' or 'Transaction Create'?
 Set it to Transaction Batch.
 
 -Ashish
 
 From: rt-users-boun...@lists.bestpractical.com
 mailto:rt-users-boun...@lists.bestpractical.com
 [rt-users-boun...@lists.bestpractical.com
 mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of
 Aaron Guise [aa...@guise.net.nz mailto:aa...@guise.net.nz]
 Sent: Thursday, February 26, 2009 4:02 PM
 To: rt-users@lists.bestpractical.com
 mailto:rt-users@lists.bestpractical.com
 Subject: [rt-users] A little Scrip help
 
 Hi,
 
 I have implemented a scrip to notify the owner in the event someone
 else merges data into one of their tickets.  All works well but alas
 it actually sends the notification twice.  There is probably a real
 simple answer but it is baffling me.  Have just ignored it the last
 few months but now I am a little beyond that.
 
 The scrip used is noted below;
 
 my $txn = $self-TransactionObj;
 return undef unless $txn-Type =~ /^AddLink$/i;
 return undef unless $txn-Field =~ /^MergedInto$/i;
 return 1;
 
 Any assistance in stopping this will be greatly appreciated.
 
 --
 Regards
 
 Aaron
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: sa...@bestpractical.com
 mailto:sa...@bestpractical.com
 
 
 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: sa...@bestpractical.com
 
 
 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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com


Re: [rt-users] A little Scrip help

2009-02-26 Thread Aaron Guise
On Fri, Feb 27, 2009 at 9:46 AM, Aaron Guise aa...@guise.net.nz wrote:

 Hi,

 I have just now amended our RT_SiteConfig with Set($UseTransactionBatch,
 1);

 Unfortunately it still triggered two emails.  The scrip itself is set to
 use transaction batch.


 *Regards,*

 *Aaron Guise
 027 212 6638
 aa...@guise.net.nz
  *



 On Fri, Feb 27, 2009 at 8:04 AM, Kenneth Crocker kfcroc...@lbl.govwrote:

 Aaron,


You need to turn on TransactionBatch in your RT_SiteConfig.pm file
 in /RTHOME/etc directory. That should allow you to use that stage option.


 Kenn
 LBNL

 On 2/26/2009 10:33 AM, Aaron Guise wrote:

 If set to transaction batch which is marked Transaction Batch(Disabled)
 it seems the script is just disabled as no email is sent.

 On Fri, Feb 27, 2009 at 1:32 AM, Potla, Ashish Bassaliel 
 c_apo...@qualcomm.com mailto:c_apo...@qualcomm.com wrote:



From: Potla, Ashish Bassaliel
Sent: Thursday, February 26, 2009 5:59 PM
To: Aaron Guise
Subject: RE: [rt-users] A little Scrip help

Is the scrip set to 'Transaction Batch' or 'Transaction Create'?
Set it to Transaction Batch.

-Ashish

From: rt-users-boun...@lists.bestpractical.com
mailto:rt-users-boun...@lists.bestpractical.com
[rt-users-boun...@lists.bestpractical.com
mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of
Aaron Guise [aa...@guise.net.nz mailto:aa...@guise.net.nz]
Sent: Thursday, February 26, 2009 4:02 PM
To: rt-users@lists.bestpractical.com
mailto:rt-users@lists.bestpractical.com
Subject: [rt-users] A little Scrip help

Hi,

I have implemented a scrip to notify the owner in the event someone
else merges data into one of their tickets.  All works well but alas
it actually sends the notification twice.  There is probably a real
simple answer but it is baffling me.  Have just ignored it the last
few months but now I am a little beyond that.

The scrip used is noted below;

my $txn = $self-TransactionObj;
return undef unless $txn-Type =~ /^AddLink$/i;
return undef unless $txn-Field =~ /^MergedInto$/i;
return 1;

Any assistance in stopping this will be greatly appreciated.

--
Regards

Aaron
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sa...@bestpractical.com
mailto:sa...@bestpractical.com


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: sa...@bestpractical.com


 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: sa...@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com