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
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
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
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;
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
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
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
$self->TicketObj->Requestors->MemberEmailAddresses,
>
> $self->TicketObj->QueueObj->Cc->MemberEmailAddresses );
>
> return 1;
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
>
> Paul
>
>
>
> *From:* Kenneth Crocker [ma
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
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
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
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.
> >
>
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
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
(
> 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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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/
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
/%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
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
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
: 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
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
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
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
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
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
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
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
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
-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
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
> 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
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
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
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
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
: [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
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
51 matches
Mail list logo