Re: [rt-users] help with scrip

2008-10-20 Thread Violetta Wawryk
Hi Gene,

good idea, thanks. But didn't work either. The scip is than always 
applicable and always applies the customfield which it should not do. *args*

I also tried unless, but than I get the errormessage:

Scrip 17 IsApplicable failed: syntax error at (eval 950) line 1, near 
-Subject unless

So I guess this strange perl doesn't know unless.

Somehow I cannot believe that noone ever tried something like this.

Frustated Greetings
Violetta


Gene LeDuc schrieb:
 Hi Violetta,
 
 Try this:
 
 if ( $self-TransactionObj-Type eq Create 
  ! ( $self-TicketObj-Subject =~ /proje[c|k]t: /i ||
 $self-TicketObj-Subject =~ /akut: /i ) )
 
 Regards,
 Gene



-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] create ticket from email

2008-10-20 Thread Violetta Wawryk
Hi,

you don't need create. For that you also user correspond.

Regards,
Violetta


Monti gmail schrieb:
 Hi there,
 sorry to nag but I'm despaired to find a solution for a basic which should
 be common problem/need.
 I need the ability to create ticket from email.
 mailgate provides only correspond and comment actions while I need
 create.
 Any suggestions?
 
 Thanks,
 
 On Wed, Oct 15, 2008 at 10:33 PM, Monti gmail [EMAIL PROTECTED] wrote:
 
 Thank you.
 I have seen it before but the mailgate has 2 available actions -
 correspond and comment, there is no create.
 how do I create using mailgate?


 On Wed, Oct 15, 2008 at 10:00 PM, Matt Hoover [EMAIL PROTECTED]wrote:

 Monti-

 You will want to setup mailgate.  See the wiki for more details here.

 http://wiki.bestpractical.com/view/EmailInterface

 Matt

 On Wed, Oct 15, 2008 at 10:10 AM, Monti gmail [EMAIL PROTECTED]wrote:

 According to the documents I looked in, it is only possible to create new
 ticket is from WEB and CLI, I could not find how to create ticket from
 email.
 is it possible?
 is it requires any customizations?

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

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 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: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com


-- 
 creating IT solutions
Violetta J. Wawryk   science + computing ag
IT-Service   Hagellocher Weg 73
phone +49 7071 9457 282  72070 Tuebingen, Germany
fax   +49 7071 9457 211  www.science-computing.de
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] prevent AdminCC to get emails twice with NotifyActor=1

2008-10-20 Thread Dorothea Muecke-Herzberg
Hello,

we are running  RT 3.6.3. Our users prefer have NotifyActor set to 1.
But we now have the
problem that AdminCc receive emails twice now when a ticket is updated
which they
have created themselves. How can we prevent this from happening?

Many thanks in advance

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] RT-Extension-CommandByMail

2008-10-20 Thread Monti gmail
Thanks, that helped. I don't have this error no more, but still I can't get
RT-Extension-CommandByMail-0.06 to work.
I have RT 3.8.1 and installed RT-Extension-CommandByMail-0.06 according to
the manual with the required configuration.
when I test it there is no error, the ticket is open and discrds the fields
I used as described RT-Extension-CommandByMail manual...

I run the command:/opt/rt3/bin/RT-Extension-CommandByMail --queue myqueue
--action correspond --url http://myrtserver
from: [EMAIL PROTECTED]
Subject: one more
DependsOn: 62
Owner: monti

some text goes here
^D

but the ticket is created without the DependsOn and Owner fields.

how do I debug this?


On Sun, Oct 19, 2008 at 8:37 PM, Joop van de Wege
[EMAIL PROTECTED]wrote:

 Monti gmail wrote:

 Hi,

 I am trying to install RT-Extension-CommandByMail Extention and it does
 not work well.

 When I restart the webserver I get this error:

 Sun Oct 19 20:23:25 2008]* [error] Can't locate
 RT/Extension/CommandByMail.pm in @INC (@INC contains:*
 /opt/rt3/bin/../local/lib /opt/rt3/bin/../lib
 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7
 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5
 /usr/lib/perl5/site_perl
 /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7
 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5
 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi
 /usr/lib/perl5/5.8.8 . /etc/httpd) at /opt/rt3/bin/../lib/RT.pm line
 595.\nCompilation failed in require at (eval 2) line 1.\n


 Any ideas?

 Yes, install rt-3.8.1 because it has a fix for the plugin paths which are
 broken in 3.8.0. See also the release notes for 3.8.1 which contain more
 info on other important things fixed in that version.

 Greetings,

 Joop

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Creating a hyperlink from _two_ custom fields?

2008-10-20 Thread Richard Hartmann
Apparently what I asked is not possible, by default.

Would it make sense to create a feature request from this:


On Tue, Oct 14, 2008 at 11:55, Richard Hartmann
[EMAIL PROTECTED] wrote:
 Hi all,

 is it possible to access information from CF foo from the 'Link values
 to' field of CF bar? If yes, what would the syntax be? The normal one
 used in Scrips?


 Thanks,
 Richard

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] version

2008-10-20 Thread Nikita Gubenko
Hello
What version of RT is the most stable now? I have 3.6.3 now and want to 
upgrade. What version would u recommend? Thanks
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] character encoding issues after updating

2008-10-20 Thread Jesse Vincent



On Sun 19.Oct'08 at 21:23:27 +0300, Jac Gubbels GUBBELS wrote:
Hi,
 
After having successfully implemented version 3.6.4 in our organization, I
have started an attempt at updating the installation to 3.8.1. It seems to
be successful, however I have one show stopping issue. When I look at the
tickets the Turkish characters we use have become corrupted. Here is what
I do in terms of upgrading the database:

There's an upgrade script one needs to run, documented in the UPGRADING
file. It's badly named (etc/schema.mysql-4.0-4.1.pl), but you need it.

 
* I copy the database to a new one using phpmyadmin (I can run the new
version now! even without the db update, but with the character issues)
* I run the update script over the copy (from the temporary directory that
holds the 'upgrade' directory)
* I am using the copy for the new installation as I have to keep the
original database in one piece, it is live...
 
When I look at the fields in the database I see no differences between the
two ('fotokopi(C500) sarı ve mavi toner bitik!' remains 'fotokopi(C500)
sarı ve mavi toner bitik!' - apparently we need blue and yellow toner
for a printer ;-), so that makes me think something changed somewhere
else. 3.6.4 shows this ticket as it should, with a dotless i, 3.8.1 gives
'ı'
 
When I play with the character encoding using my browser I am not able to
get things to show up right.
 
Any suggestions would be great.
 
-- Jac
Istanbul, Turkey

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com

-- 


pgpfIByoLpNR5.pgp
Description: PGP signature
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] version

2008-10-20 Thread Emmanuel Lacour
On Mon, Oct 20, 2008 at 03:19:51PM +0300, Nikita Gubenko wrote:
 Hello
 What version of RT is the most stable now? I have 3.6.3 now and want to 
 upgrade. What version would u recommend? Thanks


3.8.1 is the latest stable release, don't forgot to read UPGRADING.mysql
if you're using mysql ;)

I have currently 3 3.8.1 in production without trouble :)

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Using default scrip actions to create a tee for transactions

2008-10-20 Thread Stephen Turner
On Fri, 17 Oct 2008 17:50:11 -0400, Jerrad Pierce  
[EMAIL PROTECTED] wrote:

 Anyone know an easy way to get ahold of the code for default scrip  
 actions?


Jerrad,

Look in lib/RT/Action

Steve

-- 
Stephen Turner
Senior Programmer/Analyst - SAIS
MIT IST
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] create ticket from email

2008-10-20 Thread Stephen Turner
On Sun, 19 Oct 2008 11:27:23 -0400, Monti gmail [EMAIL PROTECTED]  
wrote:

 Thank you, that works grate :)
 Is there a way to set a Custom Field value in the email template?

 I have set a Custom Field for a queue, I want to be able to create a new
 ticket using mailgate but also to be able to set a value for the Custom
 Field.

Take a look at Dirk Pape's Extract Custom Fields:

http://wiki.bestpractical.com/view/ExtractCustomFieldValues

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] Accessing the ticket object from lib/RT/ObjectCustomFieldValue_Overlay.pm

2008-10-20 Thread Richard Hartmann
Hi all,

I am working on extending what you can display in a Custom Field's URL.
For that, I need to access the ticket object. The problem is that, at
this scoping level, $TicketObj does not exist.
Thus, I need to build a new one, at this point.

I tried to bake my own, using

  my $TicketObj = LoadTicket(@{[$self-ObjectId]});

within _FillInTemplateURL() in ObjectCustomFieldValue_Overlay.pm , which
resulted in

  Can't call method _Accessible without a package or object
reference at /usr/local/share/perl/5.8.8/DBIx/SearchBuilder/Record.pm
line 423.

which smells of lacking context. Is it even possible to do what I want,
here? Am I better off filling the values for this at an earlier point?
If yes, where?

Finally, would such a feature be desirable for RT at large, i.e. would a
patch be accepted?


Thanks,
Richard
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] RT thinks this message may be a bounce

2008-10-20 Thread Rana Tanveer
Hi RT Experts

I am using RT 3.6.5. on a Fedora 9 Machine, everything is fine

but on my few merged ticket i get the following error mail generated and
sent to root user. on every reply this error mail generated.

RT thinks this message may be a bounce

could someone guide me where should i look for this error? and how to
overcome this?

This problem is only with merged tickets only


-- 
-
 Rana Tanveer
+923224194457
http://www.sysadminsline.com
-
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

[rt-users] Creating my own Scrip conditions

2008-10-20 Thread Richard Hartmann
Hi all,

I have created a lib/RT/Condition/ZabbixEventStatusChange.pm which
contains the following (pruned down to the relevant part):

sub IsApplicable {
my $self = shift;
if ($self-TransactionObj-Field =~ /zabbix_event_status/) {
return(1);
}
else {
return(undef);
}
}

Also, I added

{

  Name = 'On zabbix_event_status Change',
  # loc
  Description  = 'Whenever a ticket\'s
zabbix_event_status changes',# loc
  ApplicableTransTypes = 'Set',
  ExecModule   = 'ZabbixEventStatusChange',
},

to @ScripConditions in etc/initialdata .

I have four questions regarding this:

1) Is the this the correct thing to do? If not, what is the correct
approach? The condition does not show up in RT, even after an Apache
restart which included killing the mason cache, so I probably did
something wrong.

2) Is =~ /foo/ the correct thing to do, here? I decided to play it save
and not match too narrowly, atm.

3) What happens if a user sets his locale to, say, french, for which I
did not provide a translation. Will RT fall back gracefully?

4) Can I overlay .po files? I did not even try as I suspect that will
not work, anyway.


All feedback extremely appreciated. RT fits our needs better and better,
I just need to iron out the last few things, including this one :)


Richard


PS: If someone can tell me how to merge tickets from within the scrip I
am writing, that would be awesome. Else, I will just figure it out,
myself :)

PPS: The goal is to merge all tickets our Zabbix instances create to
inform us of trigger changing to OFF into the tickets which set the
initial ON for the tuple of zabbix instance  event id. If anyone needs
such a thing for themselves, I will share, gladly.
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] Forwarding not shown in transaction history

2008-10-20 Thread Jerrad Pierce
Is the forwarding of messages supposed to be omitted from a ticket's
history?
That seems like an odd choice, but I just noticed their absence, and wanted
to
ensure that our setup is functioning properly.

-- 
Cambridge Energy Alliance: Save money  the planet
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] character encoding issues after updating

2008-10-20 Thread Jac Gubbels GUBBELS
Thanks heaps! I read the README and UPGRADING instructions but somehow missed 
UPGRADING.mysql. Sorry for bothering you! Keep up the good work! -- Jac

-Original Message-
From: Jesse Vincent [mailto:[EMAIL PROTECTED]
Sent: Mon 10/20/2008 3:46 PM
To: Jac Gubbels GUBBELS
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] character encoding issues after updating

On Sun 19.Oct'08 at 21:23:27 +0300, Jac Gubbels GUBBELS wrote:
Hi,
 
After having successfully implemented version 3.6.4 in our organization, I
have started an attempt at updating the installation to 3.8.1. It seems to
be successful, however I have one show stopping issue. When I look at the
tickets the Turkish characters we use have become corrupted. Here is what
I do in terms of upgrading the database:

There's an upgrade script one needs to run, documented in the UPGRADING
file. It's badly named (etc/schema.mysql-4.0-4.1.pl), but you need it.

 
* I copy the database to a new one using phpmyadmin (I can run the new
version now! even without the db update, but with the character issues)
* I run the update script over the copy (from the temporary directory that
holds the 'upgrade' directory)
* I am using the copy for the new installation as I have to keep the
original database in one piece, it is live...
 
When I look at the fields in the database I see no differences between the
two ('fotokopi(C500) sarı ve mavi toner bitik!' remains 'fotokopi(C500)
sarı ve mavi toner bitik!' - apparently we need blue and yellow toner
for a printer ;-), so that makes me think something changed somewhere
else. 3.6.4 shows this ticket as it should, with a dotless i, 3.8.1 gives
'ı'
 
When I play with the character encoding using my browser I am not able to
get things to show up right.
 
Any suggestions would be great.
 
-- Jac
Istanbul, Turkey

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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

[rt-users] Escelation and on-resolve scrip

2008-10-20 Thread Alex Young
Hi,

  I am using LinearEscalate each night to escalate tickets, but
it also escalates tickets that are dependent on other tickets. I was
thinking perhaps it was possible to reset a child ticket depending on
the queues standard settings, as if it was just created. In otherwords,
when the parent is resolved, the child ticket would take todays date and
add the queues due date to it along with the queues priority.

 

Or is there another way to work around escalation of the child tickets?

 

How do others stop the escalation of the child tickets, or do you just
leave them all escalated with a very short, or expired, due date?

 

Thanks,

Alex

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Error trying to create a new user on new 3.8.1 install

2008-10-20 Thread Sean McCreadie
Also, when I look at messages log it has this error every time I click
on create:

 

 

RT: Couldn't get principal for not loaded object
(/opt/rt3/bin/../lib/RT/User_Overlay.pm:1113)

 

 

Anybody have any ideas? I got my fresh install working great except for
this show stopper.  Thanks again for any insight.

 

Sean

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sean
McCreadie
Sent: Saturday, October 18, 2008 2:03 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Error trying to create a new user on new 3.8.1
install

 

When I try to create a new user on a fresh 3.8.1 install, I get this
message when I click on create:

 

Can't call method Disabled on an undefined value at
/opt/rt3/bin/../lib/RT/User_Overlay.pm line 1098.

 

Im not sure what the error means, I haven't modified Modify.html or
User_Overlay.pm at all.  Thanks in advance for any help.

 

 

Sean McCreadie

IT Support

Canyon Partners, LLC

310 272 1764

 

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Error trying to create a new user on new 3.8.1 install

2008-10-20 Thread Kenneth Crocker
Sean,


What autorization extensions are you using in your RT_SiteConfig.pm 
settings?


Kenn
LBNL

On 10/20/2008 12:25 PM, Sean McCreadie wrote:
 Also, when I look at messages log it has this error every time I click 
 on create:
 
  
 
  
 
 “RT: Couldn't get principal for not loaded object 
 (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1113)”
 
  
 
  
 
 Anybody have any ideas? I got my fresh install working great except for 
 this show stopper.  Thanks again for any insight.
 
  
 
 Sean
 
  
 
 *From:* [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] *On Behalf Of *Sean 
 McCreadie
 *Sent:* Saturday, October 18, 2008 2:03 PM
 *To:* rt-users@lists.bestpractical.com
 *Subject:* [rt-users] Error trying to create a new user on new 3.8.1 install
 
  
 
 When I try to create a new user on a fresh 3.8.1 install, I get this 
 message when I click on “create”:
 
  
 
 Can't call method Disabled on an undefined value at 
 /opt/rt3/bin/../lib/RT/User_Overlay.pm line 1098.
 
  
 
 Im not sure what the error means, I haven’t modified Modify.html or 
 User_Overlay.pm at all.  Thanks in advance for any help.
 
  
 
  
 
 Sean McCreadie
 
 IT Support
 
 Canyon Partners, LLC
 
 310 272 1764
 
  
 
 
 
 
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


[rt-users] Search result when searching content?

2008-10-20 Thread Alex Young
I have been doing the following search:

 

( Status = 'new' OR Status = 'open' OR Status = 'stalled' OR Status =
'resolved' ) AND (  Content LIKE 'test' )

 

This doesn't return tickets that have 'Test' and not 'test' in them.
Shouldn't it return all tickets if using LIKE? Is it a bug, or is it a
config item hidden away somewhere?

 

This is version 3.8.1.

 

Thanks.

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Error trying to create a new user on new 3.8.1 install

2008-10-20 Thread Sean McCreadie
Kenn,

I have aded RTFM, and RTx-Calendar (which ive used before with no
problems), but I did just add TicketLocking extension to my new build
because it looks like something we could use.  Should I disable them in
RT_Siteconfig to test?  Thanks for the quick response.
Sean 

-Original Message-
From: Kenneth Crocker [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 20, 2008 12:32 PM
To: Sean McCreadie
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Error trying to create a new user on new 3.8.1
install

Sean,


What autorization extensions are you using in your
RT_SiteConfig.pm 
settings?


Kenn
LBNL

On 10/20/2008 12:25 PM, Sean McCreadie wrote:
 Also, when I look at messages log it has this error every time I click

 on create:
 
  
 
  
 
 RT: Couldn't get principal for not loaded object 
 (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1113)
 
  
 
  
 
 Anybody have any ideas? I got my fresh install working great except
for 
 this show stopper.  Thanks again for any insight.
 
  
 
 Sean
 
  
 
 *From:* [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] *On Behalf Of *Sean 
 McCreadie
 *Sent:* Saturday, October 18, 2008 2:03 PM
 *To:* rt-users@lists.bestpractical.com
 *Subject:* [rt-users] Error trying to create a new user on new 3.8.1
install
 
  
 
 When I try to create a new user on a fresh 3.8.1 install, I get this 
 message when I click on create:
 
  
 
 Can't call method Disabled on an undefined value at 
 /opt/rt3/bin/../lib/RT/User_Overlay.pm line 1098.
 
  
 
 Im not sure what the error means, I haven't modified Modify.html or 
 User_Overlay.pm at all.  Thanks in advance for any help.
 
  
 
  
 
 Sean McCreadie
 
 IT Support
 
 Canyon Partners, LLC
 
 310 272 1764
 
  
 
 


 
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


[rt-users] RTx-EmailCompletion and RTFM incompatible?

2008-10-20 Thread Alex Young
Sorry for spamming the list a bit tonight, I'm just going through all
the outstanding support requests I have had from the RT users that I
haven't been able to fix myself.

 

I have a few extensions installed, but if I install RTx-EmailCompletion
I no longer have RTFM showing in the RT interface. If I disable
RTx-EmailCompletion, RTFM returns. It's a little odd.

 

I have been enabling RTx-EmailCompletion in RT_SiteConfig.pm with the
following line:

Set(@Plugins,(qw(RTx::EmailCompletion)));

 

Is it something I have done wrong, or just missing? RTx-EmailCompletion
does work a treat in 3.8.1 when its installed.

 

Thanks.

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] prevent AdminCC to get emails twice with NotifyActor=1

2008-10-20 Thread Kenneth Crocker
Dorothea,


That's the very reason RT came up with turning OFF the actor. I don't 
think they can have it both ways. If they are doing the transaction, 
then they already KNOW they did it and RT STILL keeps the trans in 
history. You might have to write a scrip that examines the creator and 
compares it to the AdminCC on certain transaction types and turn it off 
for that actor or role. Kind of a messy way to stop a redundant email 
when RT already offers that by turning of NotifyActor.


Kenn
LBNL

On 10/20/2008 1:40 AM, Dorothea Muecke-Herzberg wrote:
 Hello,
 
 we are running  RT 3.6.3. Our users prefer have NotifyActor set to 1.
 But we now have the
 problem that AdminCc receive emails twice now when a ticket is updated
 which they
 have created themselves. How can we prevent this from happening?
 
 Many thanks in advance
 
 Dorothea
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


Re: [rt-users] Creating a hyperlink from _two_ custom fields?

2008-10-20 Thread Kenneth Crocker
Richard,


I thought there was already a hyperlink connection ability available 
when setting up a CF called Link Values To.


Kenn
LBNL

On 10/20/2008 3:36 AM, Richard Hartmann wrote:
 Apparently what I asked is not possible, by default.
 
 Would it make sense to create a feature request from this:
 
 
 On Tue, Oct 14, 2008 at 11:55, Richard Hartmann
 [EMAIL PROTECTED] wrote:
 Hi all,

 is it possible to access information from CF foo from the 'Link values
 to' field of CF bar? If yes, what would the syntax be? The normal one
 used in Scrips?


 Thanks,
 Richard

 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


Re: [rt-users] RT thinks this message may be a bounce

2008-10-20 Thread Kenneth Crocker
Rana,


When you merged the initial ticket, did you merge it into a ticket in 
the same queue?


Kenn
LBNL

On 10/20/2008 8:11 AM, Rana Tanveer wrote:
 Hi RT Experts
 
 I am using RT 3.6.5. http://3.6.5. on a Fedora 9 Machine, everything 
 is fine
 
 but on my few merged ticket i get the following error mail generated and 
 sent to root user. on every reply this error mail generated.
 
 RT thinks this message may be a bounce
 
 could someone guide me where should i look for this error? and how to 
 overcome this?
 
 This problem is only with merged tickets only
 
 
 -- 
 -
  Rana Tanveer
 +923224194457
 http://www.sysadminsline.com
 -
 
 
 
 
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


Re: [rt-users] Creating my own Scrip conditions

2008-10-20 Thread Kenneth Crocker
Richard,


I'm not sure I understand WHY you are creating new conditions. If you 
are trying to create your own scrips for non-default situations, I would 
recommend setting the Condition to User-defined and coding the correct 
perl for that condition. I do not understand why you would want top mess 
around with the code in the directories. Is there some condition you 
need to look for that is not codable in perl?


Kenn
LBNL

On 10/20/2008 8:25 AM, Richard Hartmann wrote:
 Hi all,
 
 I have created a lib/RT/Condition/ZabbixEventStatusChange.pm which
 contains the following (pruned down to the relevant part):
 
 sub IsApplicable {
 my $self = shift;
 if ($self-TransactionObj-Field =~ /zabbix_event_status/) {
 return(1);
 }
 else {
 return(undef);
 }
 }
 
 Also, I added
 
 {
 
   Name = 'On zabbix_event_status Change',
   # loc
   Description  = 'Whenever a ticket\'s
 zabbix_event_status changes',# loc
   ApplicableTransTypes = 'Set',
   ExecModule   = 'ZabbixEventStatusChange',
 },
 
 to @ScripConditions in etc/initialdata .
 
 I have four questions regarding this:
 
 1) Is the this the correct thing to do? If not, what is the correct
 approach? The condition does not show up in RT, even after an Apache
 restart which included killing the mason cache, so I probably did
 something wrong.
 
 2) Is =~ /foo/ the correct thing to do, here? I decided to play it save
 and not match too narrowly, atm.
 
 3) What happens if a user sets his locale to, say, french, for which I
 did not provide a translation. Will RT fall back gracefully?
 
 4) Can I overlay .po files? I did not even try as I suspect that will
 not work, anyway.
 
 
 All feedback extremely appreciated. RT fits our needs better and better,
 I just need to iron out the last few things, including this one :)
 
 
 Richard
 
 
 PS: If someone can tell me how to merge tickets from within the scrip I
 am writing, that would be awesome. Else, I will just figure it out,
 myself :)
 
 PPS: The goal is to merge all tickets our Zabbix instances create to
 inform us of trigger changing to OFF into the tickets which set the
 initial ON for the tuple of zabbix instance  event id. If anyone needs
 such a thing for themselves, I will share, gladly.
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


Re: [rt-users] Error trying to create a new user on new 3.8.1 install

2008-10-20 Thread Kenneth Crocker
Sean,


I was thinking more along the lines of the problem I had when I tried 
to add a new user and the LDAP authorization setting was on, ergo not 
allowing me to do so since I could not sign on using their LDAP. I don't 
using ticket locking or whatever. I'd have to look at it to see if that 
is also a reasonable cause. Sorry.


Kenn
LBNL

On 10/20/2008 12:36 PM, Sean McCreadie wrote:
 Kenn,
 
 I have aded RTFM, and RTx-Calendar (which ive used before with no
 problems), but I did just add TicketLocking extension to my new build
 because it looks like something we could use.  Should I disable them in
 RT_Siteconfig to test?  Thanks for the quick response.
 Sean 
 
 -Original Message-
 From: Kenneth Crocker [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 20, 2008 12:32 PM
 To: Sean McCreadie
 Cc: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Error trying to create a new user on new 3.8.1
 install
 
 Sean,
 
 
   What autorization extensions are you using in your
 RT_SiteConfig.pm 
 settings?
 
 
 Kenn
 LBNL
 
 On 10/20/2008 12:25 PM, Sean McCreadie wrote:
 Also, when I look at messages log it has this error every time I click
 
 on create:

  

  

 RT: Couldn't get principal for not loaded object 
 (/opt/rt3/bin/../lib/RT/User_Overlay.pm:1113)

  

  

 Anybody have any ideas? I got my fresh install working great except
 for 
 this show stopper.  Thanks again for any insight.

  

 Sean

  

 *From:* [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] *On Behalf Of *Sean 
 McCreadie
 *Sent:* Saturday, October 18, 2008 2:03 PM
 *To:* rt-users@lists.bestpractical.com
 *Subject:* [rt-users] Error trying to create a new user on new 3.8.1
 install
  

 When I try to create a new user on a fresh 3.8.1 install, I get this 
 message when I click on create:

  

 Can't call method Disabled on an undefined value at 
 /opt/rt3/bin/../lib/RT/User_Overlay.pm line 1098.

  

 Im not sure what the error means, I haven't modified Modify.html or 
 User_Overlay.pm at all.  Thanks in advance for any help.

  

  

 Sean McCreadie

 IT Support

 Canyon Partners, LLC

 310 272 1764

  



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

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 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: [EMAIL PROTECTED]


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


Re: [rt-users] prevent AdminCC to get emails twice with NotifyActor=1

2008-10-20 Thread Stephen Turner
On Mon, 20 Oct 2008 15:41:22 -0400, Kenneth Crocker [EMAIL PROTECTED]  
wrote:

 Dorothea,


   That's the very reason RT came up with turning OFF the actor. I don't
 think they can have it both ways. If they are doing the transaction,
 then they already KNOW they did it and RT STILL keeps the trans in
 history. You might have to write a scrip that examines the creator and
 compares it to the AdminCC on certain transaction types and turn it off
 for that actor or role. Kind of a messy way to stop a redundant email
 when RT already offers that by turning of NotifyActor.


 Kenn
 LBNL


I believe the NotifyActor is to prevent people getting copies of their own  
updates, not to avoid duplicate messages.

Dorothea - I'm guessing, but you probably have scrips like this:

On Correspond Notify Requestors ...
On Correspond Notify AdminCcs ...

And when the requestor is the person adding a reply, both scrips send  
mail. You could try just having one scrip for replies, for example:

On Correspond Notify Requestors, Ccs, AdminCcs, and Other Recipients ...

You'll need to insert into the ScripActions table to make this action  
available in the web interface. You lose the ability to have different  
templates for Requestors and AdminCcs, but that might be OK for you.

Steve

 On 10/20/2008 1:40 AM, Dorothea Muecke-Herzberg wrote:
 Hello,

 we are running  RT 3.6.3. Our users prefer have NotifyActor set to 1.
 But we now have the
 problem that AdminCc receive emails twice now when a ticket is updated
 which they
 have created themselves. How can we prevent this from happening?

 Many thanks in advance

 Dorothea
-- 
Stephen Turner
Senior Programmer/Analyst - SAIS
MIT IST
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] help with scrip

2008-10-20 Thread Kenneth Crocker
Violetta,


I missed this thread. What are you trying to do?


Kenn
LBNL

On 10/19/2008 11:53 PM, Violetta Wawryk wrote:
 Hi Gene,
 
 good idea, thanks. But didn't work either. The scip is than always 
 applicable and always applies the customfield which it should not do. *args*
 
 I also tried unless, but than I get the errormessage:
 
 Scrip 17 IsApplicable failed: syntax error at (eval 950) line 1, near 
 -Subject unless
 
 So I guess this strange perl doesn't know unless.
 
 Somehow I cannot believe that noone ever tried something like this.
 
 Frustated Greetings
 Violetta
 
 
 Gene LeDuc schrieb:
 Hi Violetta,

 Try this:

 if ( $self-TransactionObj-Type eq Create 
  ! ( $self-TicketObj-Subject =~ /proje[c|k]t: /i ||
 $self-TicketObj-Subject =~ /akut: /i ) )

 Regards,
 Gene
 
 
 

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Creating a hyperlink from _two_ custom fields?

2008-10-20 Thread Richard Hartmann
On Mon, Oct 20, 2008 at 21:44, Kenneth Crocker [EMAIL PROTECTED] wrote:

I thought there was already a hyperlink connection ability
 available when setting up a CF called Link Values To.

Of course. I need to link to build a link from more values, though.

I have CF.{reporting_host}  CF.{zabbix_event_id}

I need to create a link like

https://CF.{reporting_host}/some/path/CF.{zabbix_event_id}


Thanks,
Richard
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Creating my own Scrip conditions

2008-10-20 Thread Richard Hartmann
On Mon, Oct 20, 2008 at 21:50, Kenneth Crocker [EMAIL PROTECTED] wrote:

I'm not sure I understand WHY you are creating new conditions.

Because I need to test on the status of CF.{zabbix_event_status}


 If you
 are trying to create your own scrips for non-default situations, I would
 recommend setting the Condition to User-defined and coding the correct
 perl for that condition. I do not understand why you would want top mess
 around with the code in the directories. Is there some condition you need to
 look for that is not codable in perl?

No, but jibsheet in #rt suggested this approach as you can then check in
your changes into svn. Also, I could not find any useful snippets for the
scrip conditions (i.e. what is needed, what to leave out when compared to
the file-based approach) whereas it's trivial to template from the files.


Thanks,
Richard
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] RT Update and Bulk Update

2008-10-20 Thread Jerrad Pierce
I'm having a similar issue as described here,
http://www.gossamer-threads.com/lists/rt/users/73096,
and was wondering if it had been resolved i.e; some way to not send
transaction notices for bulk
update operations OR better still, to send a single message/digest, rather
than umpteen individual
messages.

-- 
Cambridge Energy Alliance: Save money  the planet
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

[rt-users] move to new server and upgrade

2008-10-20 Thread Aaron Zuercher
Hello,
I've been using RT 3.6.0 for awhile in my organization with great success.
I'd like to move it to a new box and at the same time upgrade to lastest
version.  Can someone advise me on the best method for doing this?  I assume
I can't take data out of my 3.6 database and import directly into the 3.8
database?

So would it be best to upgrade to 3.8 before export or intall 3.6 on new
server adn then upgrade after importing?

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] move to new server and upgrade

2008-10-20 Thread Helmuth Ramirez
We recently performed this upgrade.  What we ended up doing was
installing 3.8.1 on the new server, dumping db from 3.6 server,
importing it to 3.8 server, ran the db scripts to get it up to date.  In
our case, we're running MySQL, it is VERY important you follow the MySQL
upgrade instructions, otherwise you'll end up with garbled attachments.

 

As far as just dumping your 3.6 db into 3.8.  Yes, it'll allow you to
view your tickets (I was able to), but attachments didn't work out too
well (refer to MySQL upgrade docs).

 

Good luck

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Zuercher
Sent: Monday, October 20, 2008 4:59 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] move to new server and upgrade

 

Hello,
I've been using RT 3.6.0 for awhile in my organization with great
success.  I'd like to move it to a new box and at the same time upgrade
to lastest version.  Can someone advise me on the best method for doing
this?  I assume I can't take data out of my 3.6 database and import
directly into the 3.8 database?

So would it be best to upgrade to 3.8 before export or intall 3.6 on new
server adn then upgrade after importing?

Thanks,
Aaron

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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

Re: [rt-users] Creating my own Scrip conditions

2008-10-20 Thread Kenneth Crocker
Richard,


I use something like this to test a CF Value:

my $trans = $self-TransactionObj;
my $ticket = $self-TicketObj;

if  ($trans-Type eq 'CustomField')
 {my $cf = new RT::CustomField($RT::SystemUser);
 $cf-LoadByName(Queue = $ticket-QueueObj-id,
  Name = QA Approved);
  return 0 unless $cf-id;
  if  ($trans-Field == $cf-id 
   $trans-NewValue eq Yes)
   {
return 1;
   }
 }

return 0;

I even have some compound conditions in code. I find this MUCh easier 
to maintain than fooling around in the directories. Just a thought.

Kenn
LBNL

On 10/20/2008 1:44 PM, Richard Hartmann wrote:
 On Mon, Oct 20, 2008 at 21:50, Kenneth Crocker [EMAIL PROTECTED] wrote:
 
I'm not sure I understand WHY you are creating new conditions.
 
 Because I need to test on the status of CF.{zabbix_event_status}
 
 
 If you
 are trying to create your own scrips for non-default situations, I would
 recommend setting the Condition to User-defined and coding the correct
 perl for that condition. I do not understand why you would want top mess
 around with the code in the directories. Is there some condition you need to
 look for that is not codable in perl?
 
 No, but jibsheet in #rt suggested this approach as you can then check in
 your changes into svn. Also, I could not find any useful snippets for the
 scrip conditions (i.e. what is needed, what to leave out when compared to
 the file-based approach) whereas it's trivial to template from the files.
 
 
 Thanks,
 Richard
 

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] Creating my own Scrip conditions

2008-10-20 Thread Richard Hartmann
On Mon, Oct 20, 2008 at 23:38, Kenneth Crocker [EMAIL PROTECTED] wrote:

I even have some compound conditions in code. I find this MUCh easier
 to maintain than fooling around in the directories. Just a thought.

I will play with that tomorrow. Thanks :)


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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] Problem with RT or REST?

2008-10-20 Thread Jerrad Pierce
Is anybody else experiencing this problem?
http://rt.cpan.org/Ticket/Display.html?id=40200
Tickets I create with the REST module have their bodies (transaction
content) set, but the
messages sent by OnCreate claim that the transaction has no content...

Thanks!

-- 
Cambridge Energy Alliance: Save money  the planet
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?

2008-10-20 Thread Kevin Falcone

On Oct 20, 2008, at 12:38 PM, Alex Young wrote:

 Sorry for spamming the list a bit tonight, I’m just going through  
 all the outstanding support requests I have had from the RT users  
 that I haven’t been able to fix myself.

 I have a few extensions installed, but if I install RTx- 
 EmailCompletion I no longer have RTFM showing in the RT interface.  
 If I disable RTx-EmailCompletion, RTFM returns. It’s a little odd.

 I have been enabling RTx-EmailCompletion in RT_SiteConfig.pm with  
 the following line:
 Set(@Plugins,(qw(RTx::EmailCompletion)));

 Is it something I have done wrong, or just missing? RTx- 
 EmailCompletion does work a treat in 3.8.1 when its installed.

I just installed RTx-EmailCompletion along with my testing install of  
RTFM and everything seems
to work fine.

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?

2008-10-20 Thread Alex Young
I just tried it again.

If I load the RTx-EmailCompletion plugin first, RTFM works, but
RTx-EmailCompletion doesn't. If RTFM is loaded first, the other doesn't.
Very odd.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Falcone
Sent: 20 October 2008 23:43
To: RT Users
Subject: Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?


On Oct 20, 2008, at 12:38 PM, Alex Young wrote:

 Sorry for spamming the list a bit tonight, I'm just going through  
 all the outstanding support requests I have had from the RT users  
 that I haven't been able to fix myself.

 I have a few extensions installed, but if I install RTx- 
 EmailCompletion I no longer have RTFM showing in the RT interface.  
 If I disable RTx-EmailCompletion, RTFM returns. It's a little odd.

 I have been enabling RTx-EmailCompletion in RT_SiteConfig.pm with  
 the following line:
 Set(@Plugins,(qw(RTx::EmailCompletion)));

 Is it something I have done wrong, or just missing? RTx- 
 EmailCompletion does work a treat in 3.8.1 when its installed.

I just installed RTx-EmailCompletion along with my testing install of  
RTFM and everything seems
to work fine.

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]


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


Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?

2008-10-20 Thread Frances Albemuth
 If you've got changes under local/, you might try moving those
somewhere else temporarily, dumping your mason cache, and checking to
see if the issue continues.

On Mon, Oct 20, 2008 at 5:05 PM, Alex Young
[EMAIL PROTECTED] wrote:
 I just tried it again.

 If I load the RTx-EmailCompletion plugin first, RTFM works, but
 RTx-EmailCompletion doesn't. If RTFM is loaded first, the other doesn't.
 Very odd.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Falcone
 Sent: 20 October 2008 23:43
 To: RT Users
 Subject: Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?


 On Oct 20, 2008, at 12:38 PM, Alex Young wrote:

 Sorry for spamming the list a bit tonight, I'm just going through
 all the outstanding support requests I have had from the RT users
 that I haven't been able to fix myself.

 I have a few extensions installed, but if I install RTx-
 EmailCompletion I no longer have RTFM showing in the RT interface.
 If I disable RTx-EmailCompletion, RTFM returns. It's a little odd.

 I have been enabling RTx-EmailCompletion in RT_SiteConfig.pm with
 the following line:
 Set(@Plugins,(qw(RTx::EmailCompletion)));

 Is it something I have done wrong, or just missing? RTx-
 EmailCompletion does work a treat in 3.8.1 when its installed.

 I just installed RTx-EmailCompletion along with my testing install of
 RTFM and everything seems
 to work fine.

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

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 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: [EMAIL PROTECTED]


 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: [EMAIL PROTECTED]


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


[rt-users] Mandatory Standard Fields

2008-10-20 Thread zbigniew
Using 3.8.1...

Would like to make some of the existing fields mandatory.  In particular, 
Owner.  For example, many tickets are being Resolved without actually Taking 
the ticket.  Also, making the Subject mandatory.  I saw a Javascript hack for 
this, but wondered if there was an easier way.  Priority also...

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?

2008-10-20 Thread Kevin Falcone

On Oct 20, 2008, at 4:05 PM, Alex Young wrote:

 I just tried it again.

 If I load the RTx-EmailCompletion plugin first, RTFM works, but
 RTx-EmailCompletion doesn't. If RTFM is loaded first, the other  
 doesn't.
 Very odd.

It works fine here both ways,

Set(@Plugins,(qw(RTx::EmailCompletion RT::FM)));
and the flipped version

Its worth turning on debug logging and seeing if you see the sql
from EmailCompletion and checking what modules are actually
loaded in Configuration - Tools - SystemConfiguration

-kevin

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Falcone
 Sent: 20 October 2008 23:43
 To: RT Users
 Subject: Re: [rt-users] RTx-EmailCompletion and RTFM incompatible?


 On Oct 20, 2008, at 12:38 PM, Alex Young wrote:

 Sorry for spamming the list a bit tonight, I'm just going through
 all the outstanding support requests I have had from the RT users
 that I haven't been able to fix myself.

 I have a few extensions installed, but if I install RTx-
 EmailCompletion I no longer have RTFM showing in the RT interface.
 If I disable RTx-EmailCompletion, RTFM returns. It's a little odd.

 I have been enabling RTx-EmailCompletion in RT_SiteConfig.pm with
 the following line:
 Set(@Plugins,(qw(RTx::EmailCompletion)));

 Is it something I have done wrong, or just missing? RTx-
 EmailCompletion does work a treat in 3.8.1 when its installed.

 I just installed RTx-EmailCompletion along with my testing install of
 RTFM and everything seems
 to work fine.

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

 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]


 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: [EMAIL PROTECTED]


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


Re: [rt-users] Mandatory Standard Fields

2008-10-20 Thread Kenneth Crocker
zbigniew,


I solved this by writing a global scrip that moves the creator of the 
transaction into the owner field when the ticket is resolved AND the 
owner = nobody. I do the same thing for when a ticket is opened. That 
way they don't have to do a take and THEN own open it.


Kenn
LBNL

On 10/20/2008 4:32 PM, [EMAIL PROTECTED] wrote:
 Using 3.8.1...
 
 Would like to make some of the existing fields mandatory.  In particular, 
 Owner.  For example, many tickets are being Resolved without actually Taking 
 the ticket.  Also, making the Subject mandatory.  I saw a Javascript hack for 
 this, but wondered if there was an easier way.  Priority also...
 
 Suggestions?
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 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: [EMAIL PROTECTED]


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


[rt-users] Specifying local users

2008-10-20 Thread Jerrad Pierce
Is RT meant to support the specification of RT users as recipients in forms by
specifying their username? If not, why not? It seems a pretty obvious feature
that most email systems support. If so, what's the likely suspect for
it it being
misconfigured?

I've been specifying RT users as recipients for some time, and it seemed to
work because most were local users. Recently, after assigning to some RT
users who don't have local email accounts, much havoc has ensused...

-- 
Cambridge Energy Alliance: Save money  the planet
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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


[rt-users] Safe to modify ScripActions table in database

2008-10-20 Thread gordon
I have manually added a row to the ScripActions table of the database.
Is this a bad thing to do in terms of future upgrades?
Is there a better way to make the changes?

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

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


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