[rt-users] Scrip help

2011-05-24 Thread Barry Carlyon
To follow up. I have no idea what I just changed but it is working now. As in I don't get a fail log type entry now *confused* Barry Carlyon Freelance Web Developer Freelance Lighting/AV Engineer http://barrycarlyon.co.uk mobile: 07729 048 443 skype:

Re: [rt-users] Scrip help

2011-05-24 Thread Barry Carlyon
Seems that my RT is compiling scrips and apache restart rather than at Run time Now I'm even more confused as this is not mentioned in the wiki Barry Carlyon Freelance Web Developer Freelance Lighting/AV Engineer http://barrycarlyon.co.uk mobile:

Re: [rt-users] Scrip help

2011-05-24 Thread Ruslan Zakirov
Hi, When you work on a scrip in a file, you either use DevelMode or restart web server every time you change the file. DevelMode helps in most cases, but not always. If you see some error you don't understand and DevelMode is enabled, try server restart, error may be different after that and make

Re: [rt-users] Scrip Help

2011-02-18 Thread Tom Elliott - Gyron
Hi All Did anyone get a chance to look at this - really can't solve it :( On 17 Feb 2011, at 08:57, Tom Elliott - Gyron wrote: Hi All Firstly, I should say, I'm really no coder. I can hack things about a bit, but thats about it. I've adapted

[rt-users] Scrip Help

2011-02-17 Thread Tom Elliott - Gyron
Hi All Firstly, I should say, I'm really no coder. I can hack things about a bit, but thats about it. I've adapted http://requesttracker.wikia.com/wiki/AutoCloseOnNagiosRecoveryMessages into the following. We use Opsview, which is a modified version of Nagios, and formats its emails slightly

Re: [rt-users] Scrip help please.

2010-06-10 Thread Kenneth Crocker
03, 2010 9:00 AM *To:* Dougherty Paul *Subject:* Re: [rt-users] Scrip help please. Paul, I have attached two txt files that have the code in them. These files have flower box comments and such that I always use to maintain my code. have fun with them. Kenn LBNL On Thu, Jun 3, 2010

Re: [rt-users] Scrip help please.

2010-06-10 Thread Kenneth Crocker
, 2010 1:40 PM *To:* rt-users@lists.bestpractical.com *Subject:* Re: [rt-users] Scrip help please. Paul, Perhaps I misunderstood. Are you wanting to meet these conditions at the same time (ie. a create with a CF) or are these to be two separate conditions exclusive of each other? Kenn

[rt-users] Scrip help please.

2010-06-02 Thread Dougherty Paul
Hi, I am sure this is an id10t error, but I am trying to write a scrip that sends an adds a CC to a new ticket whose urgency is Critical (or critical). So far, the closest I have gotten is to have the system add the CC's for every new ticket. Here is the custom condition that is giving me

[rt-users] Scrip Help?

2010-01-17 Thread Aaron Guise
Hi All, I have a scrip setup as below; Condition: OnComment Action: User Defined Template: Global Blank Stage: Transaction Create Custom Condition: Custom Action Preparation Code: return 1; Custom Action Cleanup Code: my $string = $self-TransactionObj-Content; $string =~

[rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Hi, i'm trying to write a scrip which does the following: We have two or more tickets, each ticket has a refersto to another like this: #1 - refers to #2 Now, if someone at ticket #2 writes an update, this update (reply in our case) should be posted also to ticket #1 Till this point it is

Re: [rt-users] Scrip help needed

2009-09-24 Thread Raed El-Hames
Hi Torsten; Try $related-BaseObj-Comment( Creator = $self-TransactionObj-Creator, Content = $self-loc( Information added by [_1]., # loc $self-TransactionObj-CreatorObj-Name, ) . \n . $self-loc( Notes: [_1], # loc $note ), ); Note the Creator line I

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
[mailto:r...@vialtus.com] Gesendet: Donnerstag, 24. September 2009 11:59 An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: rt-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed Hi Torsten; Try $related-BaseObj-Comment( Creator = $self-TransactionObj-Creator, Content

Re: [rt-users] Scrip help needed

2009-09-24 Thread Ruslan Zakirov
Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne -Urspruengliche Nachricht- Von: Raed El-Hames [mailto:r...@vialtus.com] Gesendet: Donnerstag, 24. September 2009 11:59 An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: rt-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
2009 12:39 An: Raed El-Hames Cc: rt-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed Hi Roy, no success, still: RT_System - Comments added :-( Thanks Torsten Kuehne + Nagel (AG Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: Raed El-Hames; rt-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed Torsten, Scrips work under system user, but you have to reload ticket as creator of the transaction. Something like: ... my $reply_will_be_on = RT::Ticket-new

Re: [rt-users] Scrip help needed

2009-09-24 Thread Ruslan Zakirov
@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed Torsten, Scrips work under system user, but you have to reload ticket as creator of the transaction. Something like: ... my $reply_will_be_on = RT::Ticket-new( $txn-CreatorObj ); $reply_will_be_on-Load

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed Torsten, Scrips work under system user, but you have to reload ticket as creator of the transaction. Something like: ... my $reply_will_be_on = RT::Ticket-new( $txn-CreatorObj ); $reply_will_be_on-Load

Re: [rt-users] Scrip help needed

2009-09-24 Thread Emmanuel Lacour
On Thu, Sep 24, 2009 at 04:48:19PM +0200, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote: Hi Ruslan, Raed, thanks for your support, it is working well now. Attached again the correct working scrip action, if someone else has a need for this: my $Actor =

Re: [rt-users] Scrip help needed

2009-09-24 Thread torsten.brumm
Hi Emmanuel, will try it out tomorrow: done for today ;-) Thanks for the hint. Torsten 2009/9/24 Emmanuel Lacour elac...@easter-eggs.com On Thu, Sep 24, 2009 at 04:48:19PM +0200, Brumm, Torsten / Kuehne + Nagel / Ham MI-ID wrote: Hi Ruslan, Raed, thanks for your support, it is working

Re: [rt-users] Scrip Help

2009-06-11 Thread Ken Crocker
Aaron, We use this code: # condition set on email transaction to create my $trans = $self-TransactionObj; my $msgattr = $trans-Message-First; return 0 unless $trans-Type eq Create; return 0 unless $msgattr; return 1 if $msgattr-GetHeader('Received'); return 0; Hope this helps. Kenn

[rt-users] Scrip Help

2009-06-10 Thread Aaron Guise
Hi, Is it possible to differentiate via Scrip whether a ticket is created via the RT Gui or an email being sent? I cannot seem to come up with something concrete that works just yet. *Regards,* *Aaron Guise 027 212 6638 aa...@guise.net.nz * ___

Re: [rt-users] Scrip Help

2009-06-10 Thread Kimberly McKinnis
was: $to); . . . From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Aaron Guise Sent: Wednesday, June 10, 2009 5:47 PM To: rt-users@lists.bestpractical.com Subject: [rt-users] Scrip Help Hi, Is it possible

Re: [rt-users] Scrip Help

2009-06-10 Thread Jerrad Pierce
This info exists somewhere on the wiki as a user-contributed enhancement. -- Cambridge Energy Alliance: Save money. Save the planet. ___ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com

Re: [rt-users] Scrip Help

2009-06-10 Thread Aaron Guise
Thanks Jerrad, I couldn't remember where I had seen this before. I since had a good search and found it on the Wiki. *Regards,* *Aaron Guise 027 212 6638 aa...@guise.net.nz * On Thu, Jun 11, 2009 at 12:59 PM, Jerrad Pierce jpie...@cambridgeenergyalliance.org wrote: This info exists

[rt-users] Scrip help with error message

2009-04-08 Thread Ken Crocker
To all, I have a scrip that evaluates a CF to see if it has been modified. If NOT, I wanted to send out an error message for RT to display in the Modify Ticket screen. This is the action code: $RT::Logger-error(Resolution Type NOT SET!); return 1; I get nothing. Does anyone have

[rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
To all, I'm a newbie to perl. I've written a few simple scrips and they are working just fine. My problem lies in my lack of understanding as to why some code will work in a perl program, but not in a scrip. We have some good perl programmers here and they gave me some code to use to

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
: Wednesday, March 04, 2009 12:37 AM To: rt Users Subject: [rt-users] Scrip help needed on date formatting To all, I'm a newbie to perl. I've written a few simple scrips and they are working just fine. My problem lies in my lack of understanding as to why some code will work in a perl

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
-users-boun...@lists.bestpractical.com] On Behalf Of Kenneth Crocker [kfcroc...@lbl.gov] Sent: Wednesday, March 04, 2009 12:37 AM To: rt Users Subject: [rt-users] Scrip help needed on date formatting To all, I'm a newbie to perl. I've written a few simple scrips and they are working just

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
] Sent: Wednesday, March 04, 2009 12:37 AM To: rt Users Subject: [rt-users] Scrip help needed on date formatting To all, I'm a newbie to perl. I've written a few simple scrips and they are working just fine. My problem lies in my lack of understanding as to why some code will work

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
, $day ); -Ashish From: rt-users-boun...@lists.bestpractical.com [rt-users-boun...@lists.bestpractical.com] On Behalf Of Kenneth Crocker [kfcroc...@lbl.gov] Sent: Wednesday, March 04, 2009 12:37 AM To: rt Users Subject: [rt-users] Scrip help needed

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Potla, Ashish Bassaliel
Subject: [rt-users] Scrip help needed on date formatting To all, I'm a newbie to perl. I've written a few simple scrips and they are working just fine. My problem lies in my lack of understanding as to why some code will work in a perl program, but not in a scrip. We have some good

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
: Wednesday, March 04, 2009 1:50 AM To: Potla, Ashish Bassaliel Cc: rt Users Subject: Re: [rt-users] Scrip help needed on date formatting Ashish, Tried that. No joy. Kenn LBNL On 3/3/2009 11:40 AM, Potla, Ashish Bassaliel wrote: Hey Ken, localize the variables as follows

Re: [rt-users] Scrip help needed on date formatting

2009-03-03 Thread Kenneth Crocker
Subject: Re: [rt-users] Scrip help needed on date formatting Ashish, Tried that. No joy. Kenn LBNL On 3/3/2009 11:40 AM, Potla, Ashish Bassaliel wrote: Hey Ken, localize the variables as follows and try it out : my ( undef, undef, undef, $day, $mon, $year ) = localtime

[rt-users] Scrip help

2007-10-18 Thread Kenneth Crocker
To all, I have a scrip that is supposed to modify the ticket owner to Nobody when the ticket is moved to another queue. What I have is: Name: Mod Owner on Q chg Condition: On Queue Change Action: User Defined Template: Blank Stage: TransactionBatch Custom Condition: none Custom Action Prep

Re: [rt-users] Scrip help

2007-10-18 Thread Mathew Snyder
Custom action preparation code: return 1; Custom action cleanup code: $RT::Logger-debug(trying to set owner); my ($code, $msg) = $self-TicketObj-SetOwner(10, 'Force'); $RT::Logger-debug(set owner: $code: $msg); return 1; Keep up with me and what I'm up to: http://theillien.blogspot.com

Re: [rt-users] Scrip help

2007-10-18 Thread Kenneth Crocker
Mathew, It worked great! Thanks! I figured I might need the object id as opposed to name. I didn't realise I needed to do a force either. Thanks again. Kenn LBNL On 10/18/2007 10:48 AM, Mathew Snyder wrote: Custom action preparation code: return 1; Custom action cleanup code:

Re: [rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-16 Thread Mathew Snyder
This is a scrip I use for adding a requestor. All you'd have to do is change the AddWatcher to DeleteWatcher and set up your conditions to what you need: Condition: User Defined Action: User Defined Template: Global template: Blank Stage: TransactionCreate Custom condition: You'll either want

Re: [rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-16 Thread Chris Nelson
That worked! The custom action cleanup code I had to use is: my $T_Obj = $self-TicketObj; my $requestor_address = $T_Obj-RequestorAddresses; $RT::Logger-info(* ReqAddr is $requestor_address); $T_Obj-DeleteWatcher ( Type = Requestor, Email = $requestor_address );

[rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-15 Thread Chris Nelson
Hello list, I have a rather strange request, I want to delete a requestor when a ticket is created. Reason being, as the ticket is assigned to different queues, replies to requestor are sent by the other queues, and that is usually not needed for external requests. The easiest way to address

RE: [rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-15 Thread Patterson, Craig
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Nelson Sent: Monday, October 15, 2007 4:40 PM To: rt-users@lists.bestpractical.com Subject: [rt-users] (Scrip help) Deleting a requestor upon ticket creation. Hello list, I have a rather strange request, I want

Re: [rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-15 Thread Chris Nelson
, October 15, 2007 4:40 PM To: rt-users@lists.bestpractical.com Subject: [rt-users] (Scrip help) Deleting a requestor upon ticket creation. Hello list, I have a rather strange request, I want to delete a requestor when a ticket is created. Reason being, as the ticket is assigned to different queues

Re: [rt-users] (Scrip help) Deleting a requestor upon ticket creation.

2007-10-15 Thread Mathew
I do this with some of our tickets. I'll post what I use in the morning if someone else hasn't already. Keep up with my goings on at http://theillien.blogspot.com Chris Nelson wrote: Hello list, I have a rather strange request, I want to delete a requestor when a ticket is created. Reason

Re: [rt-users] Scrip Help needed (grabbing Organization)

2007-08-23 Thread Gene LeDuc
Hi Sean, Here's my understanding of what you're trying to do: 1. Ticket comes in to default incoming queue. 2. An admin sees it and changes the Owner to himself. 3. The ticket moves into the admin's personal queue. If that is it, there's a pretty simple way to do this. Use your On Owner

Re: [rt-users] Scrip Help needed (grabbing Organization)

2007-08-23 Thread Kenneth Crocker
Sean, Why go through all that? Why not give each AdminCc of each different queue the right to SeeQueue, ShowTicket, ModifyTicket, CommentOnTicket in the general queue where all the tickets are held originally (maybe create a group named QueueAdmin for that purpose alone) that way they can

Re: [rt-users] Scrip Help needed (grabbing Organization)

2007-08-23 Thread Sean
LeDuc [EMAIL PROTECTED] To: Sean [EMAIL PROTECTED]; rt-users@lists.bestpractical.com Sent: Thursday, August 23, 2007 11:18:20 AM Subject: Re: [rt-users] Scrip Help needed (grabbing Organization) Hi Sean, Here's my understanding of what you're trying to do: 1. Ticket comes in to default incoming

Re: [rt-users] Scrip Help needed (grabbing Organization)

2007-08-23 Thread Ruslan Zakirov
: [rt-users] Scrip Help needed (grabbing Organization) Hi Sean, Here's my understanding of what you're trying to do: 1. Ticket comes in to default incoming queue. 2. An admin sees it and changes the Owner to himself. 3. The ticket moves into the admin's personal queue

[rt-users] Scrip Help needed (grabbing Organization)

2007-08-22 Thread Sean
Hi, I am trying to modify one of the contributed scrip's on here which relates to taking a ticket and having it automatically go to a certain queue. We have one queue that all requests go to (i.e. customer facing) and the admins have their own queues of responsibility. I didn't want to screw

[rt-users] Scrip help to replace requestor upon create

2007-06-18 Thread James Price
I am looking to do 1 of the following: 1. Have a scrip that removes the requestor on a specific queue if it matches X, X of course being a specific email address. 2. A SQL query that will accomplish the above that I could run from a cron job. I have a MySQL query I thought would work,

RE: [rt-users] Scrip help to replace requestor upon create

2007-06-18 Thread James Price
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of James Price Sent: Monday, June 18, 2007 2:06 PM To: rt-users@lists.bestpractical.com Subject: [rt-users] Scrip help to replace requestor upon create I am looking to do 1 of the following: 1. Have a scrip that removes the requestor on a specific