Re: [rt-users] Change the place of title page name

2012-07-03 Thread Jonathan Khattir
I would like put the title in div=body define in /Element/PageLayout

I don't know syntax, i read the masonbook but i don't understand.

http://imageshack.us/photo/my-images/21/todayk.png/


2012/7/2 Jonathan Khattir jonathan.khat...@mobiquithings.net

 Hi, I would like to known how i can change the place of the title of
 current page view.

 The variable is $Title, define in /Element/Header so i would like export
 this variable or the div div id=headerh1% $Title %/h1/div to
 display the page name in footer (/Element/Footer) for exemple.

 Thanks to help me :)





[rt-users] ActiveStatus configuration has been replaced by the new Lifecycles

2012-07-03 Thread Borngunners
What does this warning mean and how do I correct it?

[Sun Jun 24 10:38:22 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)

Thanks,
Haji


[rt-users] Installing and Configuring Asset Tracker in RT

2012-07-03 Thread Borngunners
I have installed and configured RT 4.05 and working perfectly now. I will like 
to add Asset Tracker to RT to track all asset that we purchase in my 
organization. How do I go about installing AT onto RT?

Thanks,
Haji


Re: [rt-users] Login banner

2012-07-03 Thread Ruslan Zakirov
Hi,

I think it was answered recently in another similar thread.

On Tue, Jun 26, 2012 at 10:31 PM, Brad b_zy...@comcast.net wrote:

 
 From: Brad
 Sent: 6/26/2012 12:36 PM
 To: Brad; rt-us...@bestpractical.com
 Subject: Login banner


 
 From: Brad
 Sent: 6/26/2012 10:14 AM
 To: rt-us...@bestpractical.com
 Subject: Login banner

 Hello,

 Does anyone have a how-to on adding text above, below or in the default
 login box via the login page.

 RT version 4.0.5 default theme

 Have a requirement to have legal warning at all login prompts.

 Thanks,
 Brad




-- 
Best regards, Ruslan.


Re: [rt-users] Unwanted extra Requestor added

2012-07-03 Thread Ruslan Zakirov
Hi,

The only idea is a customization. Either a scrip or customization to
web interface.What do you see in the history of the ticket?

On Wed, Jun 27, 2012 at 9:02 PM, David T. Grayston
davi...@u.washington.edu wrote:
 Aaron,



 No cc’s or other watchers are part of the queue or manually added to the
 ticket during the requests – I’ve tested this issue myself and duplicated
 (and I have ‘do anything’ perms).



 Odd that it doesn’t happen from the selfservice/create form only from the RT
 admin interface for creating a new ticket.



 As a workaround I’ve just been going in and manually removing the extra
 Requestor from each new ticket. Luckily the unwanted extra Requestor is a
 testing account that only I have access to…but its still a pain.



 I was thinking it could be some corruption in the database – where the
 account is set as a requestor on the queue but its not showing in the admin
 ui? But that should mean it would happen regardless of how the ticket was
 created.



 David



 --
 David T. Grayston Systems  Database Administrator

 University of Washington   School of Public Health



 From: Sampson, Aaron [mailto:samp...@p2sol.com]
 Sent: Wednesday, June 27, 2012 10:38 AM
 To: David T. Grayston
 Subject: RE: Unwanted extra Requestor added



 David,



 Is the original requestor CC’ing anyone when sending in the ticket? Since RT
 takes the e-mail to create the requestor maybe it is seeing the additional
 e-mail addresses and creating multiple requestors that way.



 Another thing that I just thought of (not sure if it will help) but you can
 add a watcher to the ticket or queue and change the type of watcher (i.e.
 Requestor, admin, cc) might want to look into whether or not this is set or
 something in your permission’s has set something like this to auto add an
 additional requestor.



 From: rt-users-boun...@lists.bestpractical.com
 [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of David T.
 Grayston
 Sent: Wednesday, June 27, 2012 8:54 AM
 To: rt-users@lists.bestpractical.com
 Subject: [rt-users] Unwanted extra Requestor added



 Hi all,



 RT: 4.0.5



 When a new ticket is created by a privileged user via
 “../rt/Ticket/Create.html” we’re getting an unwanted second requestor
 automatically added to the ticket. This is happening in all queues and its
 always the same extra user added as second Requestor.



 But this isn’t happening when the ticket is created via
 “../rt/SelfService/Create.html”



 The queues don’t have any custom scrips and the Create.html isn’t modified -
 so far can’t determine why this is happening.



 Any help appreciated.



 --
 David T. Grayston Systems  Database Administrator

 University of Washington   School of Public Health





-- 
Best regards, Ruslan.


Re: [rt-users] Export, import and purge tickets?

2012-07-03 Thread Ruslan Zakirov
On Fri, Jun 29, 2012 at 10:08 AM, Stefan Stefanov ststefa...@gmail.com wrote:
 Hello

 Is there any tool to export data for selected tickets (for example in
 mysqldump format file) and after successful export delete all data for
 these tickets from the database?

 This way it would be easy to create backup for old or unnecessary
 tickets, shred them and clean up database. If some of them will be
 needed in the future their data could be imported back from the dump
 file.

Shredder creates a SQL dump file that you can use to restore data. However,
restoring files in a wrong order, skipping some backups or after some changes
can result in inconsistent database. Where inconsistent means that DB can be
incomplete as you didn't restore everything or the current state of the DB
doesn't match state when data was deleted.

It may work, but sometimes would need maintenance on restore.

 --
 Stefan Stefanov



-- 
Best regards, Ruslan.


Re: [rt-users] Unwanted extra Requestor added

2012-07-03 Thread David T. Grayston
The ticket history didn't show anything other than the new ticket being created 
and it having two Requestors. I'd be the only one to have added a customization 
and nothing to make this happen was coded.

I've suppressed the issue by disabling the account that was getting added.

Unfortunately I got a similar issue in another queue where a group is being 
added as AdminCc on each ticket created even though they aren't set on the 
queue to be AdminCc currently but its possible they were set to be AdminCc on 
the queue at somepoint but latter removed as AdminCc.

Again I could suppress this issue by disabling the group in question.

Feels like a bit of a database corruption but all seem to be working fine 
otherwise.

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


 -Original Message-
 From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On
 Behalf Of Ruslan Zakirov
 Sent: Tuesday, July 03, 2012 9:17 AM
 To: David T. Grayston
 Cc: rt-users@lists.bestpractical.com
 Subject: Re: [rt-users] Unwanted extra Requestor added
 
 Hi,
 
 The only idea is a customization. Either a scrip or customization to web
 interface.What do you see in the history of the ticket?
 
 On Wed, Jun 27, 2012 at 9:02 PM, David T. Grayston
 davi...@u.washington.edu wrote:
  Aaron,
 
 
 
  No cc’s or other watchers are part of the queue or manually added to
  the ticket during the requests – I’ve tested this issue myself and
  duplicated (and I have ‘do anything’ perms).
 
 
 
  Odd that it doesn’t happen from the selfservice/create form only from
  the RT admin interface for creating a new ticket.
 
 
 
  As a workaround I’ve just been going in and manually removing the
  extra Requestor from each new ticket. Luckily the unwanted extra
  Requestor is a testing account that only I have access to…but its still a 
  pain.
 
 
 
  I was thinking it could be some corruption in the database – where the
  account is set as a requestor on the queue but its not showing in the
  admin ui? But that should mean it would happen regardless of how the
  ticket was created.
 
 
 
  David
 
 
 
  --
  David T. Grayston Systems  Database Administrator
 
  University of Washington   School of Public Health
 
 
 
  From: Sampson, Aaron [mailto:samp...@p2sol.com]
  Sent: Wednesday, June 27, 2012 10:38 AM
  To: David T. Grayston
  Subject: RE: Unwanted extra Requestor added
 
 
 
  David,
 
 
 
  Is the original requestor CC’ing anyone when sending in the ticket?
  Since RT takes the e-mail to create the requestor maybe it is seeing
  the additional e-mail addresses and creating multiple requestors that way.
 
 
 
  Another thing that I just thought of (not sure if it will help) but
  you can add a watcher to the ticket or queue and change the type of
 watcher (i.e.
  Requestor, admin, cc) might want to look into whether or not this is
  set or something in your permission’s has set something like this to
  auto add an additional requestor.
 
 
 
  From: rt-users-boun...@lists.bestpractical.com
  [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of David T.
  Grayston
  Sent: Wednesday, June 27, 2012 8:54 AM
  To: rt-users@lists.bestpractical.com
  Subject: [rt-users] Unwanted extra Requestor added
 
 
 
  Hi all,
 
 
 
  RT: 4.0.5
 
 
 
  When a new ticket is created by a privileged user via
  “../rt/Ticket/Create.html” we’re getting an unwanted second requestor
  automatically added to the ticket. This is happening in all queues and
  its always the same extra user added as second Requestor.
 
 
 
  But this isn’t happening when the ticket is created via
  “../rt/SelfService/Create.html”
 
 
 
  The queues don’t have any custom scrips and the Create.html isn’t
  modified - so far can’t determine why this is happening.
 
 
 
  Any help appreciated.
 
 
 
  --
  David T. Grayston Systems  Database Administrator
 
  University of Washington   School of Public Health
 
 
 
 
 
 --
 Best regards, Ruslan.


Re: [rt-users] Unwanted extra Requestor added

2012-07-03 Thread Kenneth Crocker
David,

Is it the same person being added in all cases? If so, have you looked that
person up and determined what group memberships are there?

Also, unless there is some sort of scrip adding a CC or AdminCc via either
a global scrip or a Queue-based scrip, this seems impossible.

Database corruption would only involve a past problem, not a continuing
problem. A continuing problems points to a scrip, like Ruslan said.

If you can turn on the detail logs of a dev environment and try to
duplicate the problem (load the Production system and configuration into
that environment) and then look at the logs. That would give an indication
of what RT is doing. Without that log, it will be difficult to find the
problem other than hunting and pecking and getting lucky.

I still think Ruslan is right about a scrip somewhere.

Kenn

On Tue, Jul 3, 2012 at 11:17 AM, David T. Grayston davi...@u.washington.edu
 wrote:

 The ticket history didn't show anything other than the new ticket being
 created and it having two Requestors. I'd be the only one to have added a
 customization and nothing to make this happen was coded.

 I've suppressed the issue by disabling the account that was getting added.

 Unfortunately I got a similar issue in another queue where a group is
 being added as AdminCc on each ticket created even though they aren't set
 on the queue to be AdminCc currently but its possible they were set to be
 AdminCc on the queue at somepoint but latter removed as AdminCc.

 Again I could suppress this issue by disabling the group in question.

 Feels like a bit of a database corruption but all seem to be working fine
 otherwise.

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


  -Original Message-
  From: ruslan.zaki...@gmail.com [mailto:ruslan.zaki...@gmail.com] On
  Behalf Of Ruslan Zakirov
  Sent: Tuesday, July 03, 2012 9:17 AM
  To: David T. Grayston
  Cc: rt-users@lists.bestpractical.com
  Subject: Re: [rt-users] Unwanted extra Requestor added
 
  Hi,
 
  The only idea is a customization. Either a scrip or customization to web
  interface.What do you see in the history of the ticket?
 
  On Wed, Jun 27, 2012 at 9:02 PM, David T. Grayston
  davi...@u.washington.edu wrote:
   Aaron,
  
  
  
   No cc’s or other watchers are part of the queue or manually added to
   the ticket during the requests – I’ve tested this issue myself and
   duplicated (and I have ‘do anything’ perms).
  
  
  
   Odd that it doesn’t happen from the selfservice/create form only from
   the RT admin interface for creating a new ticket.
  
  
  
   As a workaround I’ve just been going in and manually removing the
   extra Requestor from each new ticket. Luckily the unwanted extra
   Requestor is a testing account that only I have access to…but its
 still a pain.
  
  
  
   I was thinking it could be some corruption in the database – where the
   account is set as a requestor on the queue but its not showing in the
   admin ui? But that should mean it would happen regardless of how the
   ticket was created.
  
  
  
   David
  
  
  
   --
   David T. Grayston Systems  Database Administrator
  
   University of Washington   School of Public Health
  
  
  
   From: Sampson, Aaron [mailto:samp...@p2sol.com]
   Sent: Wednesday, June 27, 2012 10:38 AM
   To: David T. Grayston
   Subject: RE: Unwanted extra Requestor added
  
  
  
   David,
  
  
  
   Is the original requestor CC’ing anyone when sending in the ticket?
   Since RT takes the e-mail to create the requestor maybe it is seeing
   the additional e-mail addresses and creating multiple requestors that
 way.
  
  
  
   Another thing that I just thought of (not sure if it will help) but
   you can add a watcher to the ticket or queue and change the type of
  watcher (i.e.
   Requestor, admin, cc) might want to look into whether or not this is
   set or something in your permission’s has set something like this to
   auto add an additional requestor.
  
  
  
   From: rt-users-boun...@lists.bestpractical.com
   [mailto:rt-users-boun...@lists.bestpractical.com] On Behalf Of David
 T.
   Grayston
   Sent: Wednesday, June 27, 2012 8:54 AM
   To: rt-users@lists.bestpractical.com
   Subject: [rt-users] Unwanted extra Requestor added
  
  
  
   Hi all,
  
  
  
   RT: 4.0.5
  
  
  
   When a new ticket is created by a privileged user via
   “../rt/Ticket/Create.html” we’re getting an unwanted second requestor
   automatically added to the ticket. This is happening in all queues and
   its always the same extra user added as second Requestor.
  
  
  
   But this isn’t happening when the ticket is created via
   “../rt/SelfService/Create.html”
  
  
  
   The queues don’t have any custom scrips and the Create.html isn’t
   modified - so far can’t determine why this is happening.
  
  
  

[rt-users] Scrip compile issue

2012-07-03 Thread Michael Coakley
I'm trying to write a Scrip that replaces the Requestor. When I try to save 
this Scrip I get a compilation error. 

Here is my Scrip:

my %addressSubstitutions = (
ex1\@example\.com = ex1location\@example\.com,
ex2\@example\.com = ex2location\@example\.com
);
 
my $newRequestorAddr = ;
 
my $requestorAddr = $self-TicketObj-RequestorAddresses;
$RT::Logger-debug(All Queues: Requestor Email Address = $requestorAddr);
 
foreach $testAddress (keys(%addressSubstitutions)) {
if ($requestorAddr =~ /$testAddress/i) {
$newRequestorAddr = 
$addressSubstitutions{$testAddress};
break;
}
} 
 
my ($status, $msg) = $self-TicketObj-DeleteWatcher(Type = 'Requestor', Email 
= $requestorAddr);
unless ($status) {
$RT::Logger-error(All Queues : Unable to Remove the requestor 
$requestorAddr : $msg);
return undef;
}
 
my ($status, $msg) = $self-TicketObj-AddWatcher(Type = 'Requestor', Email = 
$newRequestorAddr);
unless ($status) {
$RT::Logger-error(All Queues : Unable to Add the requestor 
$newRequestorAddr : $msg);
return undef;
}
 
return 1;

Here is the error:

Couldn't compile CustomCommitCode codeblock ‘{Scrip}': Compilation error at 
/usr/lib/perl5/site_perl/5.14.2/Log/Dispatch/Output.pm line 39. Stack: 
[/usr/lib/perl5/site_perl/5.14.2/Log/Dispatch/Output.pm:39] 
[/usr/lib/perl5/site_perl/5.14.2/Log/Dispatch.pm:192] 
[/usr/lib/perl5/site_perl/5.14.2/Log/Dispatch.pm:145] 
[/usr/lib/perl5/site_perl/5.14.2/Log/Dispatch.pm:123] [(eval 1261):44] 
[/opt/rt4/share/html/Admin/Elements/EditScrip:155] 
[/opt/rt4/share/html/Admin/Global/Scrip.html:51] 
[/opt/rt4/share/html/Admin/autohandler:49] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:548] 
[/opt/rt4/sbin/../lib/RT/Interface/Web.pm:295] 
[/opt/rt4/share/html/autohandler:53]
 
Thanks,

Mike