Re: [rt-users] Add custom field to default search query

2011-08-22 Thread Thomas Sibley
On 08/19/2011 09:13 AM, Lars Braeuer wrote:
 Is there any way, like hacking an (sql) query, to include just one
 custom field with the standard search?

Others have pointed out ways to extend the simple search to
automatically search a CF, but you can do it manually by typing
CF.Customer:123 in the search box to search a custom field named
Customers with the value 123.

Thomas

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


[rt-users] Page Formatting (Only Text) After Perl Update

2011-08-22 Thread Lake, Seth M
So, I stupidly updated my debian RT box today and one of the things patched was 
Perl (5.10.1 - 5.12.4).  Since I used CPAN originally for installing Perl 
modules when I setup the server it broke pretty much everything about RT.  
After much flipping back and forth between logs and apt-get install I resolved 
all of the load errors and the Apache server came up.  But I still seem to be 
missing something.

All pages will display with no formatting at all.  The only graphic that shows 
is the | Best Practical logo, everything else is completely text without 
the usual formatting.  There is lists and tables, but no font changes are 
graphics at all (100% blue links on a while background).

I assume there is some Perl module I'm missing.  As I said, there's no errors 
so it's a soft failure.  The site functionality seems unaffected, just a bit 
harder to get around now.

Any help greatly appreciated.

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

[rt-users] rt-client ruby gem 0.3.9 released

2011-08-22 Thread Tom Lahti
I have just pushed rt-client 0.3.9 to rubygems.org.

Changes:  

* applied patch from Brian McArdle to deal with spaces in Custom Field names.
* works properly with RT having more than one digit in version strings (e.g. RT 
3.8.10)
* new method usersearch, supply a hash with key :EMailAddress to lookup an RT 
user by email.  Get back a hash with keys corresponding to fields on user edit 
page in RT.

--
Tom Lahti, SCMDBA, LPIC-1, CLA
BIT LLC
425-251-0833 x 117


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


Re: [rt-users] Page Formatting (Only Text) After Perl Update

2011-08-22 Thread Curtis Bruneau
I've encourtered this issue when you try to alias the noauth directories 
to bypass the mason.handler in the Apache config. If you have an Apache 
config line similar to below try to comment it out.


Alias /NoAuth /opt/rt3/share/html/NoAuth

Basically in the above situation the css isn't processed properly. It 
could be something else though.


Curtis

On 11-08-22 04:44 PM, Lake, Seth M wrote:


So, I stupidly updated my debian RT box today and one of the things 
patched was Perl (5.10.1 - 5.12.4).  Since I used CPAN originally for 
installing Perl modules when I setup the server it broke pretty much 
everything about RT.  After much flipping back and forth between logs 
and apt-get install I resolved all of the load errors and the Apache 
server came up.  But I still seem to be missing something.


All pages will display with no formatting at all.  The only graphic 
that shows is the | Best Practical logo, everything else is 
completely text without the usual formatting.  There is lists and 
tables, but no font changes are graphics at all (100% blue links on a 
while background).


I assume there is some Perl module I'm missing.  As I said, there's no 
errors so it's a soft failure.  The site functionality seems 
unaffected, just a bit harder to get around now.


Any help greatly appreciated.



RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA --- September 26  27, 2011
*  San Francisco, CA, USA --- October 18  19, 2011
*  Washington DC, USA --- October 31  November 1, 2011
*  Melbourne VIC, Australia --- November 28  29, 2011
*  Barcelona, Spain --- November 28  29, 2011



RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

Re: [rt-users] Page Formatting (Only Text) After Perl Update

2011-08-22 Thread Lake, Seth M
I did have a similar line.  Commented it out but nothing has changed.

My httpd.conf in case it's helpful...

VirtualHost *:80
ServerAdmin webmas...@bcssi.com

#   DocumentRoot /var/www/rt/share/html
DocumentRoot /var/www
AddDefaultCharset UTF-8

RewriteEngine On
RewriteRule ^/$ /rt/ [R]

PerlRequire /var/www/rt/bin/webmux.pl
ScriptAlias /rt/ /var/www/rt/share/html/

#   Location /NoAuth/images
#   SetHandler default
#   /Location

Location /rt
SetHandler perl-script
PerlResponseHandler RT::Mason
/Location

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined

/VirtualHost

From: Curtis Bruneau [mailto:curt...@vianet.ca]
Sent: Monday, August 22, 2011 4:59 PM
Subject: Re: [rt-users] Page Formatting (Only Text) After Perl Update

I've encourtered this issue when you try to alias the noauth directories to 
bypass the mason.handler in the Apache config. If you have an Apache config 
line similar to below try to comment it out.

Alias /NoAuth /opt/rt3/share/html/NoAuth

Basically in the above situation the css isn't processed properly. It could be 
something else though.

Curtis

On 11-08-22 04:44 PM, Lake, Seth M wrote:
So, I stupidly updated my debian RT box today and one of the things patched was 
Perl (5.10.1 - 5.12.4).  Since I used CPAN originally for installing Perl 
modules when I setup the server it broke pretty much everything about RT.  
After much flipping back and forth between logs and apt-get install I resolved 
all of the load errors and the Apache server came up.  But I still seem to be 
missing something.

All pages will display with no formatting at all.  The only graphic that shows 
is the | Best Practical logo, everything else is completely text without 
the usual formatting.  There is lists and tables, but no font changes are 
graphics at all (100% blue links on a while background).

I assume there is some Perl module I'm missing.  As I said, there's no errors 
so it's a soft failure.  The site functionality seems unaffected, just a bit 
harder to get around now.

Any help greatly appreciated.







RT Training Sessions (http://bestpractical.com/services/training.html)

*  Chicago, IL, USA - September 26  27, 2011

*  San Francisco, CA, USA - October 18  19, 2011

*  Washington DC, USA - October 31  November 1, 2011

*  Melbourne VIC, Australia - November 28  29, 2011

*  Barcelona, Spain - November 28  29, 2011


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

Re: [rt-users] Page Formatting (Only Text) After Perl Update

2011-08-22 Thread Ruslan Zakirov
Download tarball, configure and run make testdeps.

Regards, Ruslan. From phone.
23.08.2011 1:15 пользователь Lake, Seth M seth.l...@vangent.com написал:
 I did have a similar line. Commented it out but nothing has changed.

 My httpd.conf in case it's helpful...

 VirtualHost *:80
 ServerAdmin webmas...@bcssi.com

 # DocumentRoot /var/www/rt/share/html
 DocumentRoot /var/www
 AddDefaultCharset UTF-8

 RewriteEngine On
 RewriteRule ^/$ /rt/ [R]

 PerlRequire /var/www/rt/bin/webmux.pl
 ScriptAlias /rt/ /var/www/rt/share/html/

 # Location /NoAuth/images
 # SetHandler default
 # /Location

 Location /rt
 SetHandler perl-script
 PerlResponseHandler RT::Mason
 /Location

 ErrorLog /var/log/apache2/error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog /var/log/apache2/access.log combined

 /VirtualHost

 From: Curtis Bruneau [mailto:curt...@vianet.ca]
 Sent: Monday, August 22, 2011 4:59 PM
 Subject: Re: [rt-users] Page Formatting (Only Text) After Perl Update

 I've encourtered this issue when you try to alias the noauth directories
to bypass the mason.handler in the Apache config. If you have an Apache
config line similar to below try to comment it out.

 Alias /NoAuth /opt/rt3/share/html/NoAuth

 Basically in the above situation the css isn't processed properly. It
could be something else though.

 Curtis

 On 11-08-22 04:44 PM, Lake, Seth M wrote:
 So, I stupidly updated my debian RT box today and one of the things
patched was Perl (5.10.1 - 5.12.4). Since I used CPAN originally for
installing Perl modules when I setup the server it broke pretty much
everything about RT. After much flipping back and forth between logs and
apt-get install I resolved all of the load errors and the Apache server came
up. But I still seem to be missing something.

 All pages will display with no formatting at all. The only graphic that
shows is the | Best Practical logo, everything else is completely text
without the usual formatting. There is lists and tables, but no font changes
are graphics at all (100% blue links on a while background).

 I assume there is some Perl module I'm missing. As I said, there's no
errors so it's a soft failure. The site functionality seems unaffected,
just a bit harder to get around now.

 Any help greatly appreciated.





 

 RT Training Sessions (http://bestpractical.com/services/training.html)

 * Chicago, IL, USA - September 26  27, 2011

 * San Francisco, CA, USA - October 18  19, 2011

 * Washington DC, USA - October 31  November 1, 2011

 * Melbourne VIC, Australia - November 28  29, 2011

 * Barcelona, Spain - November 28  29, 2011


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

[rt-users] su for rt?

2011-08-22 Thread Yan Seiner
Is there anything like su for RT?  I'd like to be able to check on users'
ability to see certain tickets.  It's disruptive to ask them (and keep
asking them while I figure out which layer of permissions is causing me
headaches.) Any way I can use something like 'su' to assume a user's
identity without knowing their password?


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


Re: [rt-users] su for rt?

2011-08-22 Thread Ruslan Zakirov
Hi,

There is BecomeUser extension on the CPAN, but I'm not sure if it's
ported over RT4 or not.

http://search.cpan.org/~abcdefgh/RTx-BecomeUser-1.0/lib/RTx/BecomeUser.pm

On Tue, Aug 23, 2011 at 1:31 AM, Yan Seiner y...@seiner.com wrote:
 Is there anything like su for RT?  I'd like to be able to check on users'
 ability to see certain tickets.  It's disruptive to ask them (and keep
 asking them while I figure out which layer of permissions is causing me
 headaches.) Any way I can use something like 'su' to assume a user's
 identity without knowing their password?

 
 RT Training Sessions (http://bestpractical.com/services/training.html)
 *  Chicago, IL, USA  September 26  27, 2011
 *  San Francisco, CA, USA  October 18  19, 2011
 *  Washington DC, USA  October 31  November 1, 2011
 *  Melbourne VIC, Australia  November 28  29, 2011
 *  Barcelona, Spain  November 28  29, 2011




-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011

Re: [rt-users] Page Formatting (Only Text) After Perl Update

2011-08-22 Thread Lake, Seth M
Perfect, that got her.  For the record it was CSS::Squish

From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On Behalf Of 
Ruslan Zakirov
Sent: Monday, August 22, 2011 5:25 PM
To: Lake, Seth M
Cc: rt-users@lists.bestpractical.com; Curtis Bruneau
Subject: Re: [rt-users] Page Formatting (Only Text) After Perl Update


Download tarball, configure and run make testdeps.

Regards, Ruslan. From phone.
23.08.2011 1:15 пользователь Lake, Seth M 
seth.l...@vangent.commailto:seth.l...@vangent.com написал:
 I did have a similar line. Commented it out but nothing has changed.

 My httpd.conf in case it's helpful...

 VirtualHost *:80
 ServerAdmin webmas...@bcssi.commailto:webmas...@bcssi.com

 # DocumentRoot /var/www/rt/share/html
 DocumentRoot /var/www
 AddDefaultCharset UTF-8

 RewriteEngine On
 RewriteRule ^/$ /rt/ [R]

 PerlRequire /var/www/rt/bin/webmux.plhttp://webmux.pl
 ScriptAlias /rt/ /var/www/rt/share/html/

 # Location /NoAuth/images
 # SetHandler default
 # /Location

 Location /rt
 SetHandler perl-script
 PerlResponseHandler RT::Mason
 /Location

 ErrorLog /var/log/apache2/error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog /var/log/apache2/access.log combined

 /VirtualHost

 From: Curtis Bruneau [mailto:curt...@vianet.camailto:curt...@vianet.ca]
 Sent: Monday, August 22, 2011 4:59 PM
 Subject: Re: [rt-users] Page Formatting (Only Text) After Perl Update

 I've encourtered this issue when you try to alias the noauth directories to 
 bypass the mason.handler in the Apache config. If you have an Apache config 
 line similar to below try to comment it out.

 Alias /NoAuth /opt/rt3/share/html/NoAuth

 Basically in the above situation the css isn't processed properly. It could 
 be something else though.

 Curtis

 On 11-08-22 04:44 PM, Lake, Seth M wrote:
 So, I stupidly updated my debian RT box today and one of the things patched 
 was Perl (5.10.1 - 5.12.4). Since I used CPAN originally for installing Perl 
 modules when I setup the server it broke pretty much everything about RT. 
 After much flipping back and forth between logs and apt-get install I 
 resolved all of the load errors and the Apache server came up. But I still 
 seem to be missing something.

 All pages will display with no formatting at all. The only graphic that shows 
 is the | Best Practical logo, everything else is completely text without 
 the usual formatting. There is lists and tables, but no font changes are 
 graphics at all (100% blue links on a while background).

 I assume there is some Perl module I'm missing. As I said, there's no errors 
 so it's a soft failure. The site functionality seems unaffected, just a bit 
 harder to get around now.

 Any help greatly appreciated.





 

 RT Training Sessions (http://bestpractical.com/services/training.html)

 * Chicago, IL, USA - September 26  27, 2011

 * San Francisco, CA, USA - October 18  19, 2011

 * Washington DC, USA - October 31  November 1, 2011

 * Melbourne VIC, Australia - November 28  29, 2011

 * Barcelona, Spain - November 28  29, 2011


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA — September 26  27, 2011
*  San Francisco, CA, USA — October 18  19, 2011
*  Washington DC, USA — October 31  November 1, 2011
*  Melbourne VIC, Australia — November 28  29, 2011
*  Barcelona, Spain — November 28  29, 2011

Re: [rt-users] su for rt?

2011-08-22 Thread Jay Ashworth
- Original Message -
 From: Yan Seiner y...@seiner.com

 Is there anything like su for RT? I'd like to be able to check on users'
 ability to see certain tickets. It's disruptive to ask them (and keep
 asking them while I figure out which layer of permissions is causing
 me headaches.) Any way I can use something like 'su' to assume a user's
 identity without knowing their password?

You're looking for something like Zimbra Admin's Become This User. 

I don't think RT3 had that, at least native; I don't remember whether
I found an extension to do it.  I seem to think I might have.

Can't speak to RT4 yet.  That's next week.  :-)

Cheers,
-- jra
-- 
Jay R. Ashworth  Baylink   j...@baylink.com
Designer The Things I Think   RFC 2100
Ashworth  Associates http://baylink.pitas.com 2000 Land Rover DII
St Petersburg FL USA  http://photo.imageinc.us +1 727 647 1274

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


[rt-users] Add AdminCC from custom field

2011-08-22 Thread jessepdx

i have a custom field named Location that contains an email address once
it's extracted from the ticket 

how would i make a scrip adds that custom field's content as an AdminCC on
the ticket
-- 
View this message in context: 
http://old.nabble.com/Add-AdminCC-from-custom-field-tp32314835p32314835.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011


Re: [rt-users] [Rt-devel] adding a new section in tickets display

2011-08-22 Thread Ruslan Zakirov
On Mon, Aug 22, 2011 at 9:02 PM, SathiyaMoorthy SP
jobs.sath...@gmail.com wrote:
 Hi,
 Thanks for the reply.
 I spent sometime with the ShowSummary file. But no success ! I dont know how
 to edit the file. I started learning HTML::Mason, so that I can add a new
 section.
 But anyway i would like to get ideas from somebody who has did it already !

Did it several times. ShowSummary has code similar to the folowing:

| /Widgets/TitleBox, title = loc('The Basics'),
class = 'ticket-info-basics',
 /Ticket/Elements/ShowBasics, Ticket = $Ticket /

Copy it. See that ShowBasics appears twice on the page. Copy
ShowBasics file. Adjust, see changes and so on.

 How can i add a new custom section ?, through  Which i have to show 'new
 section' when the user views the ticket, and he should be allowed to add,
 edit, delete content from that section as similar as dates or people
 section.

May be you're talking about menu. Are you?


 Do i have to add HTML code or perl code ? What is the structure, which files
 i have to edit  Kindly let me know.

If you need some sort of editor for custom data then for sure you'll
need to write Mason, HTML and perl code.

 Thanks
 Moorthy

-- 
Best regards, Ruslan.

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011

[rt-users] Help with Scrip to move a ticket into a new queue

2011-08-22 Thread Gilbert Rebeiro

Hi,

I a queue called fr

There is a simple autoreply that is bound to this queue.

Scrip is setup:

Condition: OnCreate
Action: User defined
Template: Autoreply
Stage: TransactionCreate
Custom condition: return 1;
Custom action preparation code:

Custom action cleanup code:

 # Change queue
 my $newqueue = 1.General;
 my $T_Obj = $self-TicketObj;

 $RT::Logger-info(Auto assign ticket #. $T_Obj-id . to queue #. 
$newqueue );

 my ($status, $msg) = $T_Obj-SetQueue($newqueue);
 unless ($status) {
 $RT::Logger-warning(unable to set new queue: $msg);
 return undef;
 }
 return 1;

It is not a typo 1.General it is the proper name of the queue that I 
want new tickets to be moved to.



Not sure what I am doing wrong but it doesn't work.
Can anyone tell me how to debug this?
Trace this?

What am I doing wrong?

Thanks,
Gilbert.

RT Training Sessions (http://bestpractical.com/services/training.html)
*  Chicago, IL, USA  September 26  27, 2011
*  San Francisco, CA, USA  October 18  19, 2011
*  Washington DC, USA  October 31  November 1, 2011
*  Melbourne VIC, Australia  November 28  29, 2011
*  Barcelona, Spain  November 28  29, 2011