[rt-users] RT 4.2.0 - Skins in plugins

2013-11-11 Thread Alexander Reintzsch
Hello,

I tried to create a new skin based on aileron. I use rt 4.2.0. I'm
facing the problem as follows.

If I put the skin's main.css in local/css/myskin/ and the needed add on
in html/NoAuth/css/myskin everything works fine.

local/html/NoAuth/css/myskin/AfterMenus
local/html/NoAuth/css/myskin/InHeader

I can also add it to the list of skins available using this line.

push(@{RT-Config-Meta('WebDefaultStylesheet')-{'WidgetArguments'}-{'Values'}},
myskin);

So far, so good.

But if I do the same things within a plugin, then the main.css file is
not found.

So how can I store the css in the plugin to make it work?

local/plugins/RT-MySkin/static/css/myskin/main.css

does not work.

What did I do wrong?

Thanks for your help.

Cheers,
Alex

-- 
Mit freundlichen Grüßen/ Sincerely yours

Alexander Reinzsch
IT-software engineer
NetSystem
Netzwerk- und Systemtechnik GmbH

Zollstrasse 4 und Wesendonkstrasse 1a
42103 Wuppertal
Tel:   +49 202 - 705 398 - 100
Fax:   +49 202 - 705 398 - 110
Email: i...@netsystem.de
www.netsystem.de

Sitz der Gesellschaft:  Wuppertal
Registergericht:Amtsgericht Wuppertal HRB 14108
Ust-IdNr. (VAT):DE 812 562 026
Geschäftsführer:Stephan Klein

Diese E-Mail Mitteilung kann vertrauliche, dem Berufsgeheimnis
unterliegende und/oder rechtlich geschützte Informationen enthalten und
ist ausschließlich für den/die genannten Adressaten bestimmt. Jede
unbefugte Nutzung, Weitergabe, Vervielfältigung oder Versendung ist
strengstens verboten. Sollten Sie nicht der angegebene Adressat sein und
diese E-Mail Mitteilung irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender, löschen diese E-Mail und vernichten alle Kopien.
NetSystem haftet nicht für die missbräuchliche oder unzulässige Nutzung
der in dieser E-Mail Mitteilung enthaltenen Information und übernimmt
keine Verantwortung für Ihre Nutzung dieser Information. In keinem Fall
haftet Netsystem für Schäden, einschließlich von direkten, indirekten,
beiläufigen oder mittelbaren Schäden, die aus Ihrer Nutzung der in
dieser E-Mail Mitteilung enthaltenen Information entstehen.

This email communication may contain confidential, privileged and/or
legally protected information and is intended only for the named
recipient(s). Any unauthorized use, dissemination, copying or forwarding
is strictly prohibited. If you are not the intended recipient and have
received this email communication in error, please notify the sender
immediately, delete it and destroy all copies of this email. NetSystem
is not liable for any improper or incorrect use of the information
contained in this email communication and assumes no responsibility for
your use of such information. In no event shall NetSystem be liable for
any damages whatsoever, including special, indirect, incidental or
consequential damages arising in connection with your use of information
contained in this email communication.
attachment: alexander_reintzsch.vcf

signature.asc
Description: OpenPGP digital signature


[rt-users] Lifecycle mapping

2013-11-11 Thread Kriegers Horst
Hello,

I’ve created my first new lifecycle called “igs” and assigned it to à queue.


Set(%Lifecycles,
igs = {
initial = [ 'new' ],
active  = [ 'open', 'stalled', 'ToTest', 'IsTested' ],
inactive= [ 'resolved', 'rejected', 'deleted' ],

# Transitions d'un statut vers un autre
transitions = {
''   = [qw(new open resolved)],

# from   = [ to list ],
new  = [qw(open ToTest IsTested stalled resolved rejected 
deleted )],
open = [qw(new ToTest IsTested stalled resolved rejected 
deleted )],
stalled  = [qw(new open ToTest IsTested rejected resolved deleted 
)],
resolved = [qw(new open ToTest IsTested stalled rejected deleted 
)],
rejected = [qw(new open ToTest IsTested stalled resolved deleted 
)],
deleted  = [qw(new open ToTest IsTested stalled rejected resolved 
)],
ToTest   = [qw(IsTested new open stalled rejected resolved )],
IsTested = [qw(ToTest new open stalled rejected resolved )],
},

# Actions
actions = [
'new - ToTest' = {
label  = 'ToTest',
update = 'Comment',
},
'ToTest - IsTested' = {
label  = 'IsTested',
update = 'Comment',
},
'IsTested - resolved' = {
label  = 'Resolve',
update = 'Comment',
},
],


# Status mapping different different lifecycles
__maps__ = {
'igs - default' = {
'ToTest'   = 'new',
'IsTested' = 'open',
},

},


},
);


I have the error “There is no mapping for statuses between these queues. 
Contact your system administrator.” when I try to move a ticket from the “igs” 
lifecycle queue to a default lifecycle queue.

Your help would be appreciate.

Thanks,
Horst





Note Importante: Le contenu de ce courriel est uniquement réservé à la personne 
ou l'organisme à qui il est destiné. Si vous n'êtes pas le destinataire prévu, 
veuillez nous en informer au plus vite et détruire le présent courriel. Dans ce 
cas, il ne vous est pas permis de copier ce courriel, de le distribuer ou de 
l'utiliser de quelque manière que ce soit.


Important Notice: The content of this e-mail is intended only and solely for 
the use of the named recipient or organization. If you are not the named 
recipient, please inform us immediately and delete the present e-mail. In this 
case, you are not allowed to copy, distribute or use this e-mail in any way.




[rt-users] upgrade from 4.0.5 to 4.2.0, lifecycle name error

2013-11-11 Thread Ryan Whalen
Hello,

I upgraded from 4.0.5 to 4.2.0, which went smooth for the most part.

Now when I go to my dashboard it stops loading and says An internal RT
error has occurred. Your administrator can find more details in RT's log
files.

It only stops when there is a widget with queue information. Here is what
the logs show:

httpd error log:

[error]: Can't call mehod Name on an undefined value at
RTROOT/share/html/Elements/QueueSummaryByStatus line130

Stack:
 [RTROOT/share/html/Elements/QueueSummaryByStatus:130]
 [RTROOT/share/html/Elements/MyAdminQueues:52]
 [RTROOT/share/html/Elements/TitleBox:56]
 [RTROOT/share/html/Elements/MyAdminQueues:52]
 [RTROOT/share/html/Elements/MyRT:97]
...
some more
...

Any ideas when happened? I ran the upgrade for MySQL. without any problems,
and everything else seems to work so far.

Thanks,
Ryan


Re: [rt-users] Lifecycle mapping

2013-11-11 Thread Milan Toth
Hi,

you have to either set target Queue to use the same lifecycle as source Queue 
or create mapping as documented here:

http://bestpractical.com/docs/rt/4.2/customizing/lifecycles.html

cite:
If you don't provide a mapping, users will see an error when they try to move a 
ticket between queues with different lifecycles but no mapping.

Set( %Lifecycles, orders = {
# ...,
__maps__ = {
'default - orders' = {
'new'  = 'pending',
'open' = 'processing',
# ...,
},
'orders - default' = {
'pending'= 'new',
'processing' = 'open',
# ...,
},
# ...,
},
# ...,
});
Cheers,
Milan.

On 11.11.2013, at 14:35, Kriegers Horst horst.krieg...@loro.ch wrote:

 Hello,
  
 I’ve created my first new lifecycle called “igs” and assigned it to à queue.
  
  
 Set(%Lifecycles,
 igs = {
 initial = [ 'new' ],
 active  = [ 'open', 'stalled', 'ToTest', 'IsTested' ],
 inactive= [ 'resolved', 'rejected', 'deleted' ],
  
 # Transitions d'un statut vers un autre
 transitions = {
 ''   = [qw(new open resolved)],
  
 # from   = [ to list ],
 new  = [qw(open ToTest IsTested stalled resolved rejected 
 deleted )],
 open = [qw(new ToTest IsTested stalled resolved rejected 
 deleted )],
 stalled  = [qw(new open ToTest IsTested rejected resolved 
 deleted )],
 resolved = [qw(new open ToTest IsTested stalled rejected deleted 
 )],
 rejected = [qw(new open ToTest IsTested stalled resolved deleted 
 )],
 deleted  = [qw(new open ToTest IsTested stalled rejected 
 resolved )],
 ToTest   = [qw(IsTested new open stalled rejected resolved )],
 IsTested = [qw(ToTest new open stalled rejected resolved )],
 },
  
 # Actions
 actions = [
 'new - ToTest' = {
 label  = 'ToTest',
 update = 'Comment',
 },
 'ToTest - IsTested' = {
 label  = 'IsTested',
 update = 'Comment',
 },
 'IsTested - resolved' = {
 label  = 'Resolve',
 update = 'Comment',
 },
 ],
  
  
 # Status mapping different different lifecycles
 __maps__ = {
 'igs - default' = {
 'ToTest'   = 'new',
 'IsTested' = 'open',
 },
  
 },
  
  
 },
 );
  
  
 I have the error “There is no mapping for statuses between these queues. 
 Contact your system administrator.” when I try to move a ticket from the 
 “igs” lifecycle queue to a default lifecycle queue.
  
 Your help would be appreciate.
  
 Thanks,
 Horst
  
  
  
 
 Note Importante: Le contenu de ce courriel est uniquement réservé à la 
 personne ou l'organisme à qui il est destiné. Si vous n'êtes pas le 
 destinataire prévu, veuillez nous en informer au plus vite et détruire le 
 présent courriel. Dans ce cas, il ne vous est pas permis de copier ce 
 courriel, de le distribuer ou de l'utiliser de quelque manière que ce soit.
 
 Important Notice: The content of this e-mail is intended only and solely for 
 the use of the named recipient or organization. If you are not the named 
 recipient, please inform us immediately and delete the present e-mail. In 
 this case, you are not allowed to copy, distribute or use this e-mail in any 
 way.



Re: [rt-users] RT 4.2.0 - Skins in plugins

2013-11-11 Thread Alexander Reintzsch
Am Mo 11 Nov 2013 14:43:01 CET schrieb Alexander Reintzsch:
 What did I do wrong?

One thing I realized is that I had

Set($DevelMode, '1');

in etc/RT_SiteConfig.pm

This causes RT to ignore the static directories.

But it's still not working properly. The problems are merely some 
different ones now. :-( But the result is the same.

I cannot access /static/css/myskin/main.css

Has this something to do with the mason-handler? I'm stuck. Any help is 
appreciated.

cheers,
Alex
attachment: alexander_reintzsch.vcf

signature.asc
Description: OpenPGP digital signature


Re: [rt-users] upgrade from 4.0.5 to 4.2.0, lifecycle name error

2013-11-11 Thread Ryan Whalen
I disabled the RTIR Incidents queue and the errors stopped.




On Mon, Nov 11, 2013 at 9:32 AM, Ryan Whalen rwha...@advanceweb.com wrote:

 Hello,

 I upgraded from 4.0.5 to 4.2.0, which went smooth for the most part.

 Now when I go to my dashboard it stops loading and says An internal RT
 error has occurred. Your administrator can find more details in RT's log
 files.

 It only stops when there is a widget with queue information. Here is what
 the logs show:

 httpd error log:

 [error]: Can't call mehod Name on an undefined value at
 RTROOT/share/html/Elements/QueueSummaryByStatus line130

 Stack:
  [RTROOT/share/html/Elements/QueueSummaryByStatus:130]
  [RTROOT/share/html/Elements/MyAdminQueues:52]
  [RTROOT/share/html/Elements/TitleBox:56]
  [RTROOT/share/html/Elements/MyAdminQueues:52]
  [RTROOT/share/html/Elements/MyRT:97]
 ...
 some more
 ...

 Any ideas when happened? I ran the upgrade for MySQL. without any
 problems, and everything else seems to work so far.

 Thanks,
 Ryan




[rt-users] RT cli tool diffculty with bulk steal

2013-11-11 Thread Ram
I am looking to change the owner of 3000 tickets from usera to userb. It
seems that ./rt take|untake|steal does not accept a request to read ids
from stdin - that is this doesn't work:
./rt -i ls owner=usera | ./rt steal -

The first problem is that steal|take|untake doesn't like the explicit
notation ticket/ticket_id but rather prefers just a ticket_id. That's easy
enough to work around - just nuke ticket/. The issue around not like -
indicating take parameters from stdin is more of a hassle.

Suggestions?

thanks


Re: [rt-users] RT cli tool diffculty with bulk steal

2013-11-11 Thread Jaye Mathisen

./rt -i ls owner=usera | sed -e 's/ticket\///' | xargs -L 1 ./rt steal

or somesuch should get you close.

Might have to check your documentation for xargs to tell it how to only 
run 1 command at a time, I think it varies between linux and BSD.



On 11/11/2013 10:54 AM, Ram wrote:
I am looking to change the owner of 3000 tickets from usera to userb. 
It seems that ./rt take|untake|steal does not accept a request to read 
ids from stdin - that is this doesn't work:

./rt -i ls owner=usera | ./rt steal -

The first problem is that steal|take|untake doesn't like the explicit 
notation ticket/ticket_id but rather prefers just a ticket_id. That's 
easy enough to work around - just nuke ticket/. The issue around not 
like - indicating take parameters from stdin is more of a hassle.


Suggestions?

thanks



--
Jaye Mathisen, Lil Pantry
P:541-476-0152
F:541-476-0152

attachment: mrcpu.vcf

Re: [rt-users] Couldn't create related ticket create-Manager approval for ### No permission to create tickets in the queue '___Approvals' in RT 4.2

2013-11-11 Thread vitalik1
I am hoping someone from RT can revisit this page because i found that these  
http://www.bestpractical.com/docs/rt/4.2.0/customizing/approvals.html 
instructions are not working AS IS if used on RT 4.2.  What make the Approval 
Template/scrips trigger expected behavior and Approval to begin appearing for 
users was this:

1. very valuable note from this RT Wiki: 
http://requesttracker.wikia.com/wiki/ApprovalCreation namely this:
 There is an error in the documentation for RT3. This caused me a good bit of 
trouble. The Depended-On-By line in the documentation example is incorrect. The 
value on this line must be TOP (as shown here) and not 
{$Tickets{'TOP'}-Id} as the docs show.

I find this amusing since the author of this page has researched that syntac of 
the {TOP} has changed at least several time b/w RT releases and depending on 
the version of the code could be either TOP (works in RT 4.2 but RT 4.2 
Approval page used 'TOP', hence my troubles getting it to work) or 'TOP'.

2.I had to Enable the ___Approvals queue

3. Testing section of the above mentioned 4.2 customizing approvals 
instructions says Select Tools - Approvals but in RT 4.2 it is Select Tools 
- Approval

I hope this saves you some angst during implementation.

-Vitaly


On Wednesday, November 6, 2013 12:03 AM, vitalik1 vital...@yahoo.com wrote:
 
Hello Experts,

I am following these instructions 
http://www.bestpractical.com/docs/rt/4.2.0/customizing/approvals.html to create 
a simple Approval mechanism on an fresh install of RT 4.2/MySQL 5.1/RHEL 6 
system.

As the Root user I created a Change requests queue.
In the queue I created a new type-Perl Template called Create approval with 
the following code:
++
===Create-Ticket: Manager approval
Subject: Manager Approval for {$Tickets{TOP}-Id} - {$Tickets{TOP}-Subject}
Depended-On-By: TOP
Queue: ___Approvals
AdminCcGroup: vPEO
Requestors: {$Tickets{TOP}-RequestorAddresses}
Type: approval
Content-Type: text/plain
Due: {time + 3*24*60*60}
Content: Please approve me.

Thanks.
ENDOFCONTENT
++


Created a scrip Create an approval on ticket create Condition: On Create, 
Action: Create Tickets, Template: create approval, Status: enabled.
I have left ___Approvals queue disabled.
I have added the following rights to the ___Approvals queue: Grant ShowTicket 
and ModifyTicket rights to the Owner and AdminCc roles.
I did not add vPEO group as watchers of the ___Approvals queue explicitly.
Members of the vPEO group (including Root) can create tickets in the Change 
requests queue, but as you can see below from the log no corresponding 
Approvals get created and none of the vPEO members can see anything in the 
Tools-Approval menu.

The information in /var/log/messages is below:
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Couldn't create related ticket 
create-Manager approval for 20 No permission to create tickets in the queue 
'___Approvals'
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value in 
concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Action/CreateTickets.pm 
line 1151.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value in 
concatenation (.) or string at /opt/rt4/sbin/../lib/RT/URI/fsck_com_rt.pm line 
95.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Resolver RT::URI::fsck_com_rt could 
not parse fsck.com-rt://ddcdevsupport01.xxx.yyy.emc.com/ticket/, maybe 
Organization config was changed?
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value $id in 
hash element at /opt/rt4/sbin/../lib/RT/Ticket.pm line 1944.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value $value in 
substitution (s///) at /opt/rt4/sbin/../lib/RT/Tickets.pm line 2698.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value $value in 
substitution (s///) at /opt/rt4/sbin/../lib/RT/Tickets.pm line 2698.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value in 
concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Tickets.pm line 2731.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value in 
concatenation (.) or string at /opt/rt4/sbin/../lib/RT/Tickets.pm line 2731.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Use of uninitialized value $id in 
hash element at /opt/rt4/sbin/../lib/RT/Ticket.pm line 1957.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Resolver RT::URI::fsck_com_rt could 
not parse fsck.com-rt://ddcdevsupport01.xxx.yyy.emc.com/ticket/, maybe 
Organization config was changed?
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] RT::Link=HASH(0x7ff7917cad50) 
Couldn't resolve target 'fsck.com-rt://ddcdevsupport01.xxx.yyy.emc.com/ticket/' 
into a URI.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] Link could not be created: Couldn't 
resolve target 'fsck.com-rt://ddcdevsupport01.xxx.yyy.emc.com/ticket/' into a 
URI.
Nov  4 14:00:02 ddcdevsupport01 RT: [2954] AddLink thru 

Re: [rt-users] Iterating through multi select CF descriptions

2013-11-11 Thread Brent Wiese
Re-ping:

Running RT 4.0.17.

I have a CF that is a multi-select.

I use the description field to determine whether to fire off certain checks in 
a scrip.

What I can't seem to figure out is how to check every one of the chosen item's 
description.

If I try this, a slight modification of another case where I iterate through 
the chosen values ($INTval-Content):

my $ticket = $self-TicketObj;
my $cfINTvals = $ticket-CustomFieldValues($cfINT);
while ( my $INTval = ($cfINTvals-Next) ) {
if ($INTval-Description eq 'xyz') {

It fails with:
Prepare failed: RT::ObjectCustomFieldValue::Description Unimplemented in 
RT::Action::UserDefined.

I used to use this, but it no longer suffices as it only checks the first 
chosen field description:

my $value_obj = RT::CustomFieldValue-new( $ticket-CurrentUser 
);
$value_obj-LoadByCols(CustomField = $cfid, Name = 
$ticket-FirstCustomFieldValue($cfid));
my $desc = $value_obj-Description;

if ($desc eq 'xyz') {

I tried this, a variation of both (chaning FirstCustomFieldValue to 
CustomFieldValues and trying to Next them):

my $value_obj = RT::CustomFieldValue-new( $ticket-CurrentUser 
);
$value_obj-LoadByCols(CustomField = $cfINT, Name = 
$ticket-CustomFieldValues($cfINT));

while ( my $desc = ($value_obj-Next)) {
my $descval = $desc-Description;
if ($descval eq 'xyz') {

But it fails with:

Prepare failed: RT::CustomFieldValue::Next Unimplemented in 
RT::Action::UserDefined.

I'm hoping this is something really obvious I'm just not seeing after 2 days of 
pulling out my hair...

Thanks in advance for any suggestions.

Brent



Re: [rt-users] RT cli tool diffculty with bulk steal

2013-11-11 Thread Ram
`xargs -L 1`  - yep that worked like  charm!
thanks Jaye,
ram



On Mon, Nov 11, 2013 at 11:01 AM, Jaye Mathisen mr...@lilpantry.com wrote:

 ./rt -i ls owner=usera | sed -e 's/ticket\///' | xargs -L 1 ./rt steal

 or somesuch should get you close.

 Might have to check your documentation for xargs to tell it how to only
 run 1 command at a time, I think it varies between linux and BSD.



 On 11/11/2013 10:54 AM, Ram wrote:

 I am looking to change the owner of 3000 tickets from usera to userb. It
 seems that ./rt take|untake|steal does not accept a request to read ids
 from stdin - that is this doesn't work:
 ./rt -i ls owner=usera | ./rt steal -

 The first problem is that steal|take|untake doesn't like the explicit
 notation ticket/ticket_id but rather prefers just a ticket_id. That's easy
 enough to work around - just nuke ticket/. The issue around not like -
 indicating take parameters from stdin is more of a hassle.

 Suggestions?

 thanks


 --
 Jaye Mathisen, Lil Pantry
 P:541-476-0152
 F:541-476-0152




[rt-users] any way to get directly to the Crate Ticket page

2013-11-11 Thread Payam Poursaied
Hi All

One of my colleagues, create tickets frequently in a specific queue. In
RT3.8.8 in made a bookmark similar to
http://ticket-server/rt/Ticket/Create.html?Queue=XX and directly got to the
ticket create page. But in RT4.2, it seems that in order to prevent cross
site script, block direct access to ticket creation page.

First, I can understand that blocking direct access to create ticket page is
a must in order to prevent cross site forgery, does getting to the first
page, which only shows blank page, could causes any problem? I think getting
to http://ticket-server/rt/Ticket/Create.html?Queue=XX without any other
POST/GET parameter may not be unsafe. Am I wrong?

Second, is there any workaround/suggestion to overcome this case? Any
comment is appreciated

 

Regards