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-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: 07729

[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: barry

[rt-users] Scrip help

2011-05-24 Thread Barry Carlyon
Hello all, Started using RT today, and am trying to write my own scrip. As per http://requesttracker.wikia.com/wiki/WriteCustomAction I've tried copying the example using this: (current iteration) MyScrip.pm (in the actions folder) [code] package RT::Action::MyScrip; use strict; use warnings;

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 > http://requesttracker.wikia.com/wiki/AutoC

[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 di

Re: [rt-users] Scrip help please.

2010-06-10 Thread Kenneth Crocker
the Urgency part to ever evaluate as true. > > > > Cheers, > > > > Paul > > > > *From:* rt-users-boun...@lists.bestpractical.com [mailto: > rt-users-boun...@lists.bestpractical.com] *On Behalf Of *Kenneth Crocker > *Sent:* Thursday, June 10, 2010 1:40 PM &g

Re: [rt-users] Scrip help please.

2010-06-10 Thread Kenneth Crocker
$self->TicketObj->Requestors->MemberEmailAddresses, > > $self->TicketObj->QueueObj->Cc->MemberEmailAddresses ); > > return 1; > > > > Any ideas? > > > > Thanks, > > > Paul > > > > *From:* Kenneth Crocker [ma

Re: [rt-users] Scrip help please.

2010-06-02 Thread Kenneth Crocker
Paul, I have some code that adds a CC to an individual ticket on a Queue basis. So, if you want this for just certain types of tickets, maybe you could modify it for those conditions and put it in the Queues relevant to that need. OH, I also have some code that add's *additional* Cc's on "Correspo

[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

[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 =~ m/Sta

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 > 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. > > >

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 = $self->TransactionObj

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
che Nachricht- Von: Ruslan Zakirov [mailto:ruslan.zaki...@gmail.com] Gesendet: Donnerstag, 24. September 2009 16:15 An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID Cc: Raed El-Hames; rt-users@lists.bestpractical.com Betreff: Re: [rt-users] Scrip help needed $self->TransactionObj->Creator returns

Re: [rt-users] Scrip help needed

2009-09-24 Thread Ruslan Zakirov
( >       Principal => $self->CurrentUser->UserObj(), >       Right     => "$right" >       ) > ); > > > OK, i'm working as superuser, so i should have the rightdigging in the > dark :-( > > > -Ursprüngliche Nachricht- > Von: Rus

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Right => "$right" ) ); OK, i'm working as superuser, so i should have the rightdigging in the dark :-( -Ursprüngliche Nachricht----- Von: Ruslan Zakirov [mailto:ruslan.zaki...@gmail.com] Gesendet: Donnerstag, 24. September 2009 15:23 An: Brumm, Torsten / Kueh

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 (St

Re: [rt-users] Scrip help needed

2009-09-24 Thread Ruslan Zakirov
de Gesellschaft: Kuehne & Nagel A.G., Sitz: > Contern/Luxemburg 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 / Kuehn

Re: [rt-users] Scrip help needed

2009-09-24 Thread Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
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 help needed Hi Torsten; Try $related->BaseObj->Comment( Creator => $self->Tra

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 C

[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

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. K

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 s

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 Comm

Re: [rt-users] Scrip Help

2009-06-10 Thread Kimberly McKinnis
RT::Logger->debug("To email 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 Su

[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 * ___ http:

[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

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

2009-03-03 Thread Kenneth Crocker
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

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

2009-03-03 Thread Kenneth Crocker
ocker [kfcroc...@lbl.gov] > Sent: 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/

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

2009-03-03 Thread Potla, Ashish Bassaliel
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 und

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

2009-03-03 Thread Kenneth Crocker
/%02d', $year + 1900, $mon, $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

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

2009-03-03 Thread Kenneth Crocker
practical.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

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

2009-03-03 Thread Potla, Ashish Bassaliel
l.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 on date formatting To all, I'm a newbie to perl. I've written a few simple scrips and t

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

[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 f

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: $RT::Logge

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

[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 Pre

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::L

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 to

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. Rea

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

2007-10-15 Thread Chris Nelson
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, repli

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 to

[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 needed (grabbing Organization)

2007-08-23 Thread Ruslan Zakirov
> From: Gene 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 underst

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

2007-08-23 Thread Sean
llion -Sean - Original Message From: Gene 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 understa

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 t

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 Ch

[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

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

[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, essentially