Re: [rt-users] Add a Delete link next to the Take link

2012-06-21 Thread Arthur Rance

I was talking about adding it in the 'Search - Unowned Tickets'.
I tried that :
@Attributes = (   { Name = 'Search - Unowned Tickets', Description = 
'[_1] newest unowned tickets', # loc Content = { Format = 'a 
href=\__WebPath__/Ticket/Display.html?id=__id__\__id__/a/TITLE:#', 'a 
href=\__WebPath__/Ticket/Display.html?id=__id__\__Subject__/a/TITLE:Subject',
 QueueName, ExtendedStatus, CreatedRelative, 'A 
HREF=\__WebPath__/Ticket/Display.html?Action=Takeid=__id__\__loc(Take)__/a
 A 
HREF=\__WebPath__/Ticket/Display.html?Status=deletedid=__id__\__loc(Delete)__/a
 /TITLE: ' , Query   =  Owner = 'Nobody' AND ( Status = 'new' OR Status = 
'open'),   OrderBy = 'Created',   Order   = 'DESC' },   },);
...but when I click on Delete, it redirects me to the page displaying the 
deleted ticket, instead of staying in the 'Search - Unowned Tickets'.

From: michael.st...@livetext.com
Date: Wed, 20 Jun 2012 19:47:11 -0500
Subject: Re: [rt-users] Add a Delete link next to the Take link
To: arthur_ra...@hotmail.com

If you're talking about adding it to Display.html, I used the following for RT 
3.8 to add stalled and deleted buttons.


path/to/rt3/local/html/Callbacks/yourdir/Ticket/Elements/Tabs/Default



%init


if ($Ticket) {
#if ($Ticket-CurrentUserHasRight('ModifyTicket')  ($Ticket-Status ne 
'stalled')) {
#$actions-{'stall'} = {
#title = loc('Stall'),


#path = 
'Ticket/Update.html?Action=CommentDefaultStatus=stalledid='.$Ticket-id,
#};
#}
if ($Ticket-CurrentUserHasRight('DeleteTicket')  ($Ticket-Status ne 
'deleted')) {


$actions-{'delete'} = {
title = loc('Delete'),
path = 'Ticket/Display.html?Status=deletedid='.$Ticket-id,
};
}
}

/%init

%args
$Ticket = undef
$tabs = undef
$actions = undef
/%args

On Tue, Jun 19, 2012 at 10:21 AM, Arthur Rance arthur_ra...@hotmail.com wrote:






Hello,
I'd like to add a Delete link (to delete a ticket) next to the Take link. 
How would you do that ?



  

  

Re: [rt-users] Cannot send emails

2012-06-21 Thread Scott Sjodin
Josh,

What are you using to retrieve mail? Fetchmail? what are you using to send
mail? Postfix? some context would help with troubleshooting.

On Thu, Jun 21, 2012 at 4:15 AM, Josh Hopkins j...@prorivertech.com wrote:

 I have set both of the $CorrespondAddress and the $CommentAddress.  But
 when I watch the mail logs I see:

 ** **

“2012-06-20 18:30:19.993009500 info msg 9789329: bytes 1040 from
 anonymous@. qp 19311 uid 48”

 ** **

 Every email it sends is trying to be sent via anonymous@. Instead of
 supp...@mydomain.com.  I have restarted apache and even restarted the
 server nothing seem to be working.  I have tested sending emails via test
 scripts and they seem to be working just fine.  Any ideas and where the
 anonymous@. setting might be?  Thanks,

 /Josh

 ** **

 ** **



[rt-users] How change favicon.png

2012-06-21 Thread Jonathan Khattir
Hi, I try to change the favicon.png but it's don't work. In apache log i
have this message :'' without matching '' at
/opt/rt4/local/html/NoAuth/images/favicon.png line 38
(/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:208)

How can i change the favicon?

Thx


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Borngunners
This is the error log from apache2

[Wed Jun 20 06:46:44 2012] [notice] Apache/2.2.22 (Ubuntu) 
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Wed Jun 20 17:18:25 2012] [error] [client 128.8.222.95] failed to resolve 
handler `Plack::Handler::Apache2': Can't locate Plack$
[Wed Jun 20 17:20:56 2012] [notice] caught SIGTERM, shutting down
[Wed Jun 20 17:21:18 2012] [notice] Apache/2.2.22 (Ubuntu) 
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 10:43:08 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 10:43:45 2012] [notice] Apache/2.2.22 (Ubuntu) 
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 10:43:57 2012] [error] [client 128.8.222.95] failed to resolve 
handler `Plack::Handler::Apache2': Can't locate Plack$
[Thu Jun 21 10:44:00 2012] [error] [client 128.8.222.95] failed to resolve 
handler `Plack::Handler::Apache2': Can't locate Plack$


 

 

 

-Original Message-
From: 20/20 Lab l...@pacbell.net
To: rt-users rt-users@lists.bestpractical.com
Sent: Wed, Jun 20, 2012 6:20 pm
Subject: Re: [rt-users] RT on Ubuntu 12


--snip--
  SetHandler perl-script is *not* recommended. SetHandler modperl is the 
documented configuration and is correct -kevin
--snip--

That's good to know.  I remember that from when I set it up, but 
couldn't get it to work.  It works now (since upgrading to 12 I 
assume).  Thanks.

 


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Paul Tomblin
sudo apt-get install libplack-perl


On Thu, Jun 21, 2012 at 10:46 AM, Borngunners borngunn...@aol.com wrote:
 This is the error log from apache2

 [Wed Jun 20 06:46:44 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Wed Jun 20 17:18:25 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Wed Jun 20 17:20:56 2012] [notice] caught SIGTERM, shutting down
 [Wed Jun 20 17:21:18 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:08 2012] [notice] caught SIGTERM, shutting down
 [Thu Jun 21 10:43:45 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:57 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Thu Jun 21 10:44:00 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$




 -Original Message-
 From: 20/20 Lab l...@pacbell.net
 To: rt-users rt-users@lists.bestpractical.com
 Sent: Wed, Jun 20, 2012 6:20 pm
 Subject: Re: [rt-users] RT on Ubuntu 12

 --snip--
   SetHandler perl-script is *not* recommended. SetHandler modperl is the
 documented configuration and is correct -kevin
 --snip--

 That's good to know.  I remember that from when I set it up, but
 couldn't get it to work.  It works now (since upgrading to 12 I
 assume).  Thanks.



-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Borngunners
I just installed libplack-perl using the following command suggested sudo 
apt-get install libplack-perl
After installing it, I decided to include use Plack::Handler::Apache2 in my 
apache2 configuration. This is the following error message I got:

root@helpdesks:/etc/apache2/sites-available# /etc/init.d/apache2 start
 * Starting web server apache2  
 Syntax error on line 28 of 
/etc/apache2/sites-enabled/000-default:
Can't locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib 
/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib 
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 
/usr/local/lib/site_perl . /etc/apache2) at 
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nBEGIN failed--compilation 
aborted at /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nCompilation 
failed in require at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 
54.\nBEGIN failed--compilation aborted at 
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 54.\nCompilation failed 
in require at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 
55.\nBEGIN failed--compilation aborted at 
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 55.\nCompilation failed 
in require at /opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nBEGIN 
failed--compilation aborted at /opt/rt4/sbin/../lib/RT/CustomField.pm line 
63.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT/System.pm line 
122.\nBEGIN failed--compilation aborted at /opt/rt4/sbin/../lib/RT/System.pm 
line 122.\nCompilation failed in require at /opt/rt4/sbin/../lib/RT.pm line 
503.\n
Action 'start' failed.
The Apache error log may have more information.

 
And after looking into the apache2 error log, this is the erroe message I get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu) 
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down


if I comment out use Plack::Handler::Apache2, I won't have any error message 
after starting apache2.


Thanks

 

 

-Original Message-
From: Paul Tomblin ptomb...@xcski.com
To: Borngunners borngunn...@aol.com
Cc: lab l...@pacbell.net; rt-users rt-users@lists.bestpractical.com
Sent: Thu, Jun 21, 2012 10:55 am
Subject: Re: [rt-users] RT on Ubuntu 12


sudo apt-get install libplack-perl


On Thu, Jun 21, 2012 at 10:46 AM, Borngunners borngunn...@aol.com wrote:
 This is the error log from apache2

 [Wed Jun 20 06:46:44 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Wed Jun 20 17:18:25 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Wed Jun 20 17:20:56 2012] [notice] caught SIGTERM, shutting down
 [Wed Jun 20 17:21:18 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:08 2012] [notice] caught SIGTERM, shutting down
 [Thu Jun 21 10:43:45 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:57 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Thu Jun 21 10:44:00 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$




 -Original Message-
 From: 20/20 Lab l...@pacbell.net
 To: rt-users rt-users@lists.bestpractical.com
 Sent: Wed, Jun 20, 2012 6:20 pm
 Subject: Re: [rt-users] RT on Ubuntu 12

 --snip--
   SetHandler perl-script is *not* recommended. SetHandler modperl is the
 documented configuration and is correct -kevin
 --snip--

 That's good to know.  I remember that from when I set it up, but
 couldn't get it to work.  It works now (since upgrading to 12 I
 assume).  Thanks.



-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin

 


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Kevin Falcone
On Thu, Jun 21, 2012 at 11:33:05AM -0400, Borngunners wrote:
I just installed libplack-perl using the following command suggested sudo 
 apt-get install
libplack-perl
After installing it, I decided to include use Plack::Handler::Apache2 in 
 my apache2
configuration. This is the following error message I got:

Have you installed any of the RT dependencies on this machine?

The README explains how to run make testdeps and make fixdeps.  You'll
need to run those and either install from CPAN or translate the needed
perl modules into the appropriate Ubuntu packages.

-kevin

root@helpdesks:/etc/apache2/sites-available# /etc/init.d/apache2 start
 * Starting web server
apache2
Syntax error on line 28 of /etc/apache2/sites-enabled/000-default:
Can't locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib
/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib 
 /etc/perl
/usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 
 /usr/share/perl5
/usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl . 
 /etc/apache2) at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nBEGIN 
 failed--compilation aborted at
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nCompilation failed in 
 require at
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 54.\nBEGIN 
 failed--compilation aborted
at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 54.\nCompilation 
 failed in require
at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 55.\nBEGIN 
 failed--compilation
aborted at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 
 55.\nCompilation failed in
require at /opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nBEGIN 
 failed--compilation aborted
at /opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nCompilation failed in 
 require at
/opt/rt4/sbin/../lib/RT/System.pm line 122.\nBEGIN failed--compilation 
 aborted at
/opt/rt4/sbin/../lib/RT/System.pm line 122.\nCompilation failed in require 
 at
/opt/rt4/sbin/../lib/RT.pm line 503.\n
Action 'start' failed.
The Apache error log may have more information.
And after looking into the apache2 error log, this is the erroe message I 
 get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu) 
 PHP/5.3.10-1ubuntu3.2 with
Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down
 
if I comment out use Plack::Handler::Apache2, I won't have any error 
 message after starting
apache2.


pgpqRj7xFAfxl.pgp
Description: PGP signature


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Paul Tomblin
On Thu, Jun 21, 2012 at 11:33 AM, Borngunners borngunn...@aol.com wrote:
 Can't locate JSON.pm in @INC (@INC contains: /opt/rt4/sbin/../local/lib
 /opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib
 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2
 /usr/lib/perl5 /us

If you're missing JSON.pm, then you never ran make testdeps and
make fixdeps when you installed.

Go back and install it properly, following *all* the instructions.

-- 
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin


Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread 20/20 Lab
Sounds like you didnt finish the 'make fixdeps' part of the setup.  Some 
items (the last time I installed from the tarball) will not / can not be 
installed that way.  In which case it'll say in the last few lines about 
how it could not install 'Thing::subthing' then just head on over to 
cpan and install it manually.  Looking at my server,  it looks like 
DateTime, GD, prefork, and XML-RSS are the packages I had to manually 
install.  Tho I'm not positive.


On 06/21/2012 8:33 AM, Borngunners wrote:
I just installed libplack-perl using the following command suggested 
sudo apt-get install libplack-perl
After installing it, I decided to include use 
Plack::Handler::Apache2 in my apache2 configuration. This is the 
following error message I got:


root@helpdesks:/etc/apache2/sites-available# /etc/init.d/apache2 start
 * Starting web server apache2 Syntax error on line 28 of 
/etc/apache2/sites-enabled/000-default:
Can't locate JSON.pm in @INC (@INC contains: 
/opt/rt4/sbin/../local/lib 
/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib /opt/rt4/sbin/../lib 
/etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 
/usr/share/perl/5.14 /usr/local/lib/site_perl . /etc/apache2) at 
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nBEGIN 
failed--compilation aborted at 
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nCompilation failed 
in require at /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 
54.\nBEGIN failed--compilation aborted at 
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line 
54.\nCompilation failed in require at 
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 55.\nBEGIN 
failed--compilation aborted at 
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line 
55.\nCompilation failed in require at 
/opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nBEGIN 
failed--compilation aborted at /opt/rt4/sbin/../lib/RT/CustomField.pm 
line 63.\nCompilation failed in require at 
/opt/rt4/sbin/../lib/RT/System.pm line 122.\nBEGIN failed--compilation 
aborted at /opt/rt4/sbin/../lib/RT/System.pm line 122.\nCompilation 
failed in require at /opt/rt4/sbin/../lib/RT.pm line 503.\n

Action 'start' failed.
The Apache error log may have more information.

And after looking into the apache2 error log, this is the erroe 
message I get:

$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu) 
PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $

[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting down


if I comment out use Plack::Handler::Apache2, I won't have any error 
message after starting apache2.



Thanks


-Original Message-
From: Paul Tomblin ptomb...@xcski.com
To: Borngunners borngunn...@aol.com
Cc: lab l...@pacbell.net; rt-users rt-users@lists.bestpractical.com
Sent: Thu, Jun 21, 2012 10:55 am
Subject: Re: [rt-users] RT on Ubuntu 12

sudo apt-get install libplack-perl


On Thu, Jun 21, 2012 at 10:46 AM, Borngunners borngunn...@aol.com wrote:
 This is the error log from apache2

 [Wed Jun 20 06:46:44 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Wed Jun 20 17:18:25 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Wed Jun 20 17:20:56 2012] [notice] caught SIGTERM, shutting down
 [Wed Jun 20 17:21:18 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:08 2012] [notice] caught SIGTERM, shutting down
 [Thu Jun 21 10:43:45 2012] [notice] Apache/2.2.22 (Ubuntu)
 PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5 Perl/v5.14.2 $
 [Thu Jun 21 10:43:57 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$
 [Thu Jun 21 10:44:00 2012] [error] [client 128.8.222.95] failed to resolve
 handler `Plack::Handler::Apache2': Can't locate Plack$




 -Original Message-
 From: 20/20 Lab l...@pacbell.net
 To: rt-users rt-users@lists.bestpractical.com
 Sent: Wed, Jun 20, 2012 6:20 pm
 Subject: Re: [rt-users] RT on Ubuntu 12

 --snip--
   SetHandler perl-script is *not* recommended. SetHandler modperl is the
 documented configuration and is correct -kevin
 --snip--

 That's good to know.  I remember that from when I set it up, but
 couldn't get it to work.  It works now (since upgrading to 12 I
 assume).  Thanks.



--
http://www.linkedin.com/in/paultomblin
http://careers.stackoverflow.com/ptomblin





[rt-users] mail AdminCC when moving ticket from queue to queue

2012-06-21 Thread Asanka Gunasekera
Hi, how do I get the RT to send a mail to AdminCC when moving a ticket from one 
queue to another

Thanks and Regards


Re: [rt-users] Cannot send emails

2012-06-21 Thread 20/20 Lab

Set($SMTPFrom, 'supp...@mydomain.com');

Maybe?

On 06/21/2012 1:34 AM, Scott Sjodin wrote:

Josh,

What are you using to retrieve mail? Fetchmail? what are you using to 
send mail? Postfix? some context would help with troubleshooting.


On Thu, Jun 21, 2012 at 4:15 AM, Josh Hopkins j...@prorivertech.com 
mailto:j...@prorivertech.com wrote:


I have set both of the $CorrespondAddress and the
$CommentAddress.  But when I watch the mail logs I see:

   “2012-06-20 18:30:19.993009500 info msg 9789329: bytes 1040
from anonymous@. qp 19311 uid 48”

Every email it sends is trying to be sent via anonymous@. Instead
of supp...@mydomain.com mailto:supp...@mydomain.com.  I have
restarted apache and even restarted the server nothing seem to be
working.  I have tested sending emails via test scripts and they
seem to be working just fine.  Any ideas and where the anonymous@.
setting might be?  Thanks,

/Josh







Re: [rt-users] mail AdminCC when moving ticket from queue to queue

2012-06-21 Thread Jennifer Koermer
You can create a global scrip with the following:
[cid:image001.png@01CD4FAF.B7D19810]

I created a customized template that also includes the first content on the 
ticket, this makes it a little easier to keep track of what the ticket is 
actually about without needing to log into the system.  Here is my template 
content:

RT-Attach-Message: yes


{$Transaction-CreatedAsString}: Request {$Ticket-id} was acted upon.
Transaction: {$Transaction-Description}
   Queue: {$Ticket-QueueObj-Name}
 Subject: {$Transaction-Subject || $Ticket-Subject || (No subject 
given)}
   Owner: {$Ticket-OwnerObj-Name}
  Requestors: {$Ticket-RequestorAddresses}
  Status: {$Ticket-Status}
Ticket URL: {RT-Config-Get('WebURL')}Ticket/Display.html?id={$Ticket-id} 


Transaction Content:
--
{$Transaction-Content()}

Original Ticket Content:
--
{$Ticket-Transactions-First-Content()}

Jennifer Koermer
System Administrator IV


Production Resource Group, LLC
915 Secaucus Road, Secaucus, NJ 07094
201-758-4349 phone
201-758-4350 fax
201-232-7691 cell
jkoer...@prg.commailto:jkoer...@prg.com
www.prg.comhttp://www.prg.com/

From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Asanka Gunasekera
Sent: Thursday, June 21, 2012 1:08 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] mail AdminCC when moving ticket from queue to queue

Hi, how do I get the RT to send a mail to AdminCC when moving a ticket from one 
queue to another

Thanks and Regards
inline: image001.png

Re: [rt-users] Question about REST interface and status

2012-06-21 Thread Jeff Konnen
does anybody use REST to create tickets in RT 
am I the onlyone having this carriagereturn issue?

-- 
Jeff Konnen


On Monday 18 June 2012 at 07:51, Jeff Konnen wrote:

 Hi,
 this is the way we are creating the ticket, by using a HTML form:
 
 html
 form method=POST 
 action=http://xxx/REST/1.0/ticket/new/;
   User: input type=text name=user size=20br
   Pass: input type=text name=pass size=20br
   Content: textarea rows=10 name=content cols=30id: new
 Text: This is the ticket text
 Subject: This is my ticket
 Status: resolved
 Queue: 6/textareabr
   pinput type=submit value=Submit name=B1input type=reset 
 value=Reset name=B2/p
 /form
 /html
 
 Thanks
 Jeff
 
 On Sat, Jun 16, 2012 at 2:19 AM, Kevin Falcone falc...@bestpractical.com 
 (mailto:falc...@bestpractical.com) wrote:
  On Fri, Jun 15, 2012 at 11:23:27PM +0200, Jeff Konnen wrote:
  # Could not create ticket.
  # Status 'resolved
  ' isn't a valid status for tickets in this queue.
  
  Is this error due to the carriage return and how can I avoid it?
  
  There's a good chance that it dislikes the carriage return.
  However, we'd need to know how you're creating the ticket and what
  you're sending across the wire to make suggestions.
  
  -kevin
 
 
 
 -- 
 Jeff Konnen
 



Re: [rt-users] RT on Ubuntu 12

2012-06-21 Thread Borngunners
I ran make fixdeps and other dependencies manually. I also ran apache2 to start 
the apache server. This is the respond I got after running the apache command:

root@helpdesks:/opt/rt4/etc# /etc/init.d/apache2 start
 * Starting web server apache2  
 [Thu Jun 21 17:26:51 2012] 
[warning]: The ActiveStatus configuration has been replaced by the new 
Lifecycles
functionality. You should set the 'active' property of the 'default'
lifecycle and add transition rules; see RT_Config.pm for documentation. 
(/opt/rt4/sbin/../lib/RT/Config.pm:766)

  [ OK ]

Now, I am not able to login as root and the default password. I am not able to 
login using ldap also. 

Thanks

 

 

 

-Original Message-
From: 20/20 Lab l...@pacbell.net
To: Borngunners borngunn...@aol.com
Cc: rt-users rt-users@lists.bestpractical.com
Sent: Thu, Jun 21, 2012 11:49 am
Subject: Re: [rt-users] RT on Ubuntu 12


  
Sounds like you didnt finish the 'make  fixdeps' part of the setup.  Some 
items (the last time I installed  from the tarball) will not / can not be 
installed that way.  In  which case it'll say in the last few lines about 
how it could not  install 'Thing::subthing' then just head on over to cpan 
and  install it manually.  Looking at my server,  it looks like  
DateTime, GD, prefork, and XML-RSS are the packages I had to  manually 
install.  Tho I'm not positive.
  
  On 06/21/2012 8:33 AM, Borngunners wrote:


I just installed libplack-perl using  the following command suggested 
sudo apt-get install  libplack-perl
  After installing it, I decided to include use  
Plack::Handler::Apache2 in my apache2 configuration. This is  the 
following error message I got:
  
  root@helpdesks:/etc/apache2/sites-available#  
/etc/init.d/apache2 start
   * Starting web server  apache2   
 
Syntax error on line 28 of  /etc/apache2/sites-enabled/000-default:
  Can't locate JSON.pm in @INC (@INC contains:  
/opt/rt4/sbin/../local/lib  
/opt/rt4/local/plugins/RT-Authen-ExternalAuth/lib  /opt/rt4/sbin/../lib 
/etc/perl /usr/local/lib/perl/5.14.2  /usr/local/share/perl/5.14.2 
/usr/lib/perl5 /usr/share/perl5  /usr/lib/perl/5.14 
/usr/share/perl/5.14  /usr/local/lib/site_perl . /etc/apache2) at   
   /opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nBEGIN  
failed--compilation aborted at  
/opt/rt4/sbin/../lib/RT/Interface/Web.pm line 73.\nCompilation  failed 
in require at  /opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line   
   54.\nBEGIN failed--compilation aborted at  
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValue.pm line  
54.\nCompilation failed in require at  
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line  55.\nBEGIN 
failed--compilation aborted at  
/opt/rt4/sbin/../lib/RT/ObjectCustomFieldValues.pm line  
55.\nCompilation failed in require at  
/opt/rt4/sbin/../lib/RT/CustomField.pm line 63.\nBEGIN  
failed--compilation aborted at  /opt/rt4/sbin/../lib/RT/CustomField.pm 
line 63.\nCompilation  failed in require at 
/opt/rt4/sbin/../lib/RT/System.pm line  122.\nBEGIN failed--compilation 
aborted at  /opt/rt4/sbin/../lib/RT/System.pm line 122.\nCompilation
  failed in require at /opt/rt4/sbin/../lib/RT.pm line 503.\n
  Action 'start' failed.
  The Apache error log may have more information.
  
 
And after looking into the apache2 error log, this is the   
 erroe message I get:
$
[Thu Jun 21 11:26:15 2012] [notice] caught SIGTERM, shutting
down
[Thu Jun 21 11:26:19 2012] [notice] Apache/2.2.22 (Ubuntu)  
  PHP/5.3.10-1ubuntu3.2 with Suhosin-Patch mod_perl/2.0.5
Perl/v5.14.2 $
[Thu Jun 21 11:26:37 2012] [notice] caught SIGTERM, shutting
down


if I comment out use  Plack::Handler::Apache2, I 
won't have any error message  after starting apache2.
  
  
  Thanks
  
  
 
  
  
 
  
  
-OriginalMessage-
From: Paul Tomblin ptomb...@xcski.com
To: Borngunners borngunn...@aol.com
Cc: lab l...@pacbell.net; rt-users
rt-users@lists.bestpractical.com
Sent: Thu, Jun 21, 2012 10:55 am
Subject: Re: [rt-users] 

Re: [rt-users] Question about REST interface and status

2012-06-21 Thread Jennifer Koermer
I’m using a C# web site and request to create tickets as well.
I’m using the AppendLine function of a stringbuilder object in C#.  I ended up 
adding doing a find and replace on my comment and removing \n before I send the 
request.
Msg.ToString().Replace(\n, )

This might not be the most elegant solution, but it is working for me.
-Jennifer

From: rt-users-boun...@lists.bestpractical.com 
[mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of Jeff Konnen
Sent: Thursday, June 21, 2012 1:25 PM
To: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Question about REST interface and status

does anybody use REST to create tickets in RT
am I the onlyone having this carriagereturn issue?

--
Jeff Konnen


On Monday 18 June 2012 at 07:51, Jeff Konnen wrote:
Hi,
this is the way we are creating the ticket, by using a HTML form:

html
form method=POST
action=http://xxx/REST/1.0/ticket/new/;
  User: input type=text name=user size=20br
  Pass: input type=text name=pass size=20br
  Content: textarea rows=10 name=content cols=30id: new
Text: This is the ticket text
Subject: This is my ticket
Status: resolved
Queue: 6/textareabr
  pinput type=submit value=Submit name=B1input type=reset
value=Reset name=B2/p
/form
/html

Thanks
Jeff
On Sat, Jun 16, 2012 at 2:19 AM, Kevin Falcone 
falc...@bestpractical.commailto:falc...@bestpractical.com wrote:

On Fri, Jun 15, 2012 at 11:23:27PM +0200, Jeff Konnen wrote:
# Could not create ticket.
# Status 'resolved
' isn't a valid status for tickets in this queue.

Is this error due to the carriage return and how can I avoid it?
There's a good chance that it dislikes the carriage return.
However, we'd need to know how you're creating the ticket and what
you're sending across the wire to make suggestions.

-kevin



--
Jeff Konnen



Re: [rt-users] Question about REST interface and status

2012-06-21 Thread Ram
I'm using PHP and the HTTP/Request2 module to hit the REST API
extensively. We create tickets, update CFs, add and view comments, do
searches, add and retrieve attachments without issue.

 does anybody use REST to create tickets in RT

 am I the onlyone having this carriagereturn issue?

You might be able to use the SelfService interface instead:
- http://requesttracker.wikia.com/wiki/SelfService
- rt/share/html/SelfService (off the shelf forms etc)
- rt/local/html/SelfService (your customized or original forms)


[rt-users] Error creating tickets

2012-06-21 Thread Borngunners
Ticket could not be created due to an internal error

[rt-users] rt-crontool question..

2012-06-21 Thread Glenn E. Sieb
So I have a bunch of queues here. I want to set up rt-crontool to send 
out the Hey--this ticket is more than xx hours old! Do something! 
emails to the AdminCCs of the queues in question.


My question is, I have a bunch of queues for one department, that all 
begin with a pattern (say, CS-). Is it possible to do a TicketSQL that 
matches any queue that matches CS-% (or CS-* or similar)? I tried 
playing in the Advanced search tool, with no success. But I am the first 
to admit my SQL is weak.


Thanks in advance, as always!
Best,
--Glenn

--
Glenn E. Sieb
System Administrator
+1 201 809-4958

eFashionSolutions
80 Enterprise Avenue South
Secaucus, NJ 07094



Re: [rt-users] FriendlyFromLineFormat

2012-06-21 Thread David T. Grayston
Thanks Kevin - I'd done a minor code tweak so it prefers the queue name on the 
autoreply to get the desired behavior.

--
David T. Grayston Systems  Database Administrator
University of Washington   School of Public Health


 -Original Message-
 From: rt-users-boun...@lists.bestpractical.com [mailto:rt-users-
 boun...@lists.bestpractical.com] On Behalf Of Kevin Falcone
 Sent: Wednesday, June 06, 2012 7:38 PM
 To: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] FriendlyFromLineFormat
 
 On Wed, May 23, 2012 at 06:46:44PM +, David T. Grayston wrote:
 RT: 4.0.5
 
 Set($FriendlyFromLineFormat, \%s\ %s);
 
 In the autoreply email I'm getting queue description queue@email
 and we'd rather have it -
 queue name queue@email. I'm not sure how to change this behavior
 and from what I've read
 it seems we should be seeing the queue name used.
 
 It uses the SenderName for users, but the Autoreply code swaps in the
 Queue and prefers description.  You could make a small code override in
 local/lib to change the behavior of RT::Action::Notify::SetReturnAddress
 
 -kevin


Re: [rt-users] rt-crontool question..

2012-06-21 Thread Kenneth Crocker
Glenn,

you don't have to necessarily do this with Cronjob. RT has Dashboards that
can run Queries on a scheduled basis and send the results to whomever you
want.

Try creating a Search or series of searches, depending on who is
responsible for what Queues/Tickets, and then saving those searches for a
group or globally and then put those searches into a dashboard or series of
dashboards and set them up to run based on need.

For example, if you want Queue/Ticket owners to get a list of tickets that
have been in the Queue for more than a week and have no time worked or
whatever, create a search to do that and then put it into a dashboard for
that person/Queue persons.

OR, you can set up a search to run in cronjob.

Just a thought.

Kenn

On Thu, Jun 21, 2012 at 2:27 PM, Glenn E. Sieb
gs...@efashionsolutions.comwrote:

 So I have a bunch of queues here. I want to set up rt-crontool to send out
 the Hey--this ticket is more than xx hours old! Do something! emails to
 the AdminCCs of the queues in question.

 My question is, I have a bunch of queues for one department, that all
 begin with a pattern (say, CS-). Is it possible to do a TicketSQL that
 matches any queue that matches CS-% (or CS-* or similar)? I tried
 playing in the Advanced search tool, with no success. But I am the first to
 admit my SQL is weak.

 Thanks in advance, as always!
 Best,
 --Glenn

 --
 Glenn E. Sieb
 System Administrator
 +1 201 809-4958

 eFashionSolutions
 80 Enterprise Avenue South
 Secaucus, NJ 07094