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:
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:
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
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
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
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
, 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
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
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 =~
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
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
[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
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
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
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
@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
-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
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 =
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
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
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
*
___
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
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
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
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
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
: 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
-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
]
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
, $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
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
: 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
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
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
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
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:
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
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
);
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
-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
, 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
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
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
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
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
: [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
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
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,
: [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
49 matches
Mail list logo