[rt-users] RT at a glance with one column - how to enable?

2007-07-06 Thread Dave Alden
Hi,
  I see that the RT at a glance with one column feature has been
backported, but I don't see how to enable it.  I tried going into
Configuration-Global-RT at a glance and deleting everything from
the summary area, then I edited my personal RT at a glance page and
hit the Reset to default button, which shows that there isn't
anything in the summary part - but it still shrinks the page to
allow for an empty summary.  Help?
...thnx,
...dave
-- 
Dave Alden
The Ohio State University
Department of Mathematics
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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


Re: [rt-users] Can't use string () as a HASH ref while strict refs in use at /opt/rt3/share/html/Elements/MyRT line 50, DATA line 1662

2007-07-06 Thread Jesse Vincent


On Jul 6, 2007, at 6:08 AM, Richard Ellis wrote:


Hi Jessie,

Thanks, the error changes but it still doesn't work properly. Don't  
even know where to begin to look for this error:

System error

error: 	Can't use string () as a HASH ref while strict refs in  
use at /opt/rt3/share/html/Elements/MyRT line 74.

context:
... 
70: 	 HomepageSettings = $default_portlets? $default_portlets- 
Content: {},

71:  );
72: }
73: 
74: 	my ($body, $summary) = @{$session{'my_rt_portlets'}}{qw(body  
summary)};

75: unless( $body  @$body ) {
76:  $body = $summary || [];
77:  $summary = undef;
78: }
... 
code stack:  /opt/rt3/share/html/Elements/MyRT:74
/opt/rt3/share/html/index.html:81
/opt/rt3/share/html/autohandler:291
raw error
 Can't use string () as a HASH ref while strict refs in use at / 
opt/rt3/share/html/Elements/MyRT line 74.


just before that line of code, can you Dumper $session{my_rt_portlets}?

Does this only happen for a particular user?



PGP.sig
Description: This is a digitally signed message part
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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

Re: [rt-users] Can't use string () as a HASH ref while strict refs in use at /opt/rt3/share/html/Elements/MyRT line 50, DATA line 1662

2007-07-06 Thread Richard Ellis

Hi Jessie,

Appears to happen to all users. I'll edit the code now (using rc2 version).

FYI,  have updated DBI, DBIx::Searchbuilder and HTML::Mason to latest 
revs, just in case that was an issue and also taken MySQL to latest v5 rev.


Richard
Jesse Vincent wrote:


On Jul 6, 2007, at 6:08 AM, Richard Ellis wrote:


Hi Jessie,

Thanks, the error changes but it still doesn't work properly. Don't 
even know where to begin to look for this error:


*System error*

*error:*� 	Can't use string () as a HASH ref while strict refs in 
use at /opt/rt3/share/html/Elements/MyRT line 74.

*context:*� 
*...*�  
*70:*� 	HomepageSettings = $default_portlets? 
$default_portlets-Content: {},

*71:*�  );
*72:*�  }
*73:*�  
*74:*� 	my ($body, $summary) = @{$session{'my_rt_portlets'}}{qw(body 
summary)};

*75:*�  unless( $body  @$body ) {
*76:*�  $body = $summary || [];
*77:*�  $summary = undef;
*78:*�  }
*...*�  

*code stack:*�  /opt/rt3/share/html/Elements/MyRT:74
/opt/rt3/share/html/index.html:81
/opt/rt3/share/html/autohandler:291

raw error http://gplive.uk:3000/index.html#raw
Can't use string () as a HASH ref while strict refs in use at 
/opt/rt3/share/html/Elements/MyRT line 74.



just before that line of code, can you Dumper $session{my_rt_portlets}?

Does this only happen for a particular user?



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

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


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


[rt-users] Trying to get ResolveSendsReply to work with 3.6.4 (Solved)

2007-07-06 Thread Brian Buchanan

I Solved while writing this, it seems I had to restart Apache?  Or did I
simply not wait long enough before refreshing the ticket display page?

--
I'm trying to get the Resolve link on a ticket's page to send a reply rather
than a comment, just like ResolveSendsReply on the wiki says:

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

I feel I'm missing a step.

1. (essentally) Install RT into /opt/rt3
2. cd /opt/rt3/local/html
3. mkdir -p Callbacks/local/Ticket/Elements/Tabs
- Callbacks doesn't exist
4. vi Callbacks/local/Ticket/Elements/Tabs/Default

paste in:

%init 

# Change the Resolve link to reply instead of comment by default. 

{ my $resolved = loc 'Resolve'; while (my ($k, $v) = each %$actions) { if
($v-{title} eq $resolved) { $v-{path} =~ s/Comment/Respond/; } } } 

/%init 

%args $actions = undef /%args

Save and exit.

refresh the ticket page, but I don't see a change.

Solved it, it seems I had to restart Apache?

Brian


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

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


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


RE: [rt-users] Not saving custom fields in RTFM upon Articlecreation

2007-07-06 Thread Heistand, David
On Tue, 2007-06-12 at 18:18 -0400, Jeff Platter wrote:
 So I think I figured out what was going on. I have fixed the problem
 for my RTFM situation but I need to know if what I did was the right
 thing or not. So if one of the developers would like to look this over
 that would be fantastic, and let me know if I broke anything else or
 not.
 
  
 
 I found the problem to be that the format for
 ProcessObjectCustomFieldUpdates in /rt3/ lib/RT/Interface/Web.pm. The
 format for the custom object that it is expecting is: # format:
 Object-object class-object id-CustomField-CF id-commands
 
  
 
 However when you load /rt3/share/html/RTFM/Article/Edit.html for the
 first time to create an article there is no initial object id. So the
 field end up being Object-object class--CustomField-CF
 id-commands with a missing object id section.
 
  
 
 When ProcessObjectCustomFieldUpdates runs the first loop:
 
 foreach my $arg ( keys %$ARGSRef ) {
 
 # format: Object-object class-object id-CustomField-CF
 id-commands
 
 next unless $arg =~ /^Object-([\w:]+)-(\d*)-CustomField-(\d
 +)-(.*)$/;
 
  
 
 # For each of those objects, find out what custom fields we
 want to work with.
 
 $custom_fields_to_mod{ $1 }{ $2 || 0 }{ $3 }{ $4 } =
 $ARGSRef-{ $arg };
 
 }
 
  
 
 It ends up setting the ID field to 0 cause it doesn’t exist. Then when
 it loops through the class and id’s later and tries to get the
 $Object:
 
 $Object-Load( $id ) unless ($Object-id || 0) == $id;
 
  
 
 It resets the object id to the wrong thing because the article has
 already been created by this point and it has an id but the custom
 fields don’t associate with that object id
 
  
 
 I don’t know if I’m making any sense with this anymore.
 
  
 
 Here is what I did to fix the issue:
 
 foreach my $arg ( keys %$ARGSRef ) {
 
 # format: Object-object class-object id-CustomField-CF
 id-commands
 
 next unless $arg =~ /^Object-([\w:]+)-(\d*)-CustomField-(\d
 +)-(.*)$/;
 
  
 
 my $Object = $args{'Object'} if exists $args{'Object'};
 
 my $id = $Object-id || 0;
 
  
 
 # For each of those objects, find out what custom fields we
 want to work with.
 
 $custom_fields_to_mod{ $1 }{ $2 || $id }{ $3 }{ $4 } =
 $ARGSRef-{ $arg };
 
 }
 
  
 
 I changed the first loop to pull the object if it was passed in and
 set the id to the object-id or to 0. So it should default back to
 what it was doing before if no object is currently passed in.
 
  
 
 Someone please take the time to read this and let me know if what I
 did is good or not. If ne1 else is having this issue and needs a patch
 file I can create one and send / post it somewhere, just lmk.
 
  
 
 Thanks for all the help this list has been so far.
 
 -Jeff
 
  
 
 From:[EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jeff
 Platter
 Sent: Tuesday, June 12, 2007 4:36 PM
 To: rt-users@lists.bestpractical.com
 Subject: [FILTER] [rt-users] Not saving custom fields in RTFM upon
 Article creation
 
 
  
 
 I’m using RTFM 2.2.0RC5 with RT 3.6.3. I have created a custom field
 for the body of the article. I have setup all permissions on the
 custom field and added it to the class that I want it in. When
 creating a new article it doesn’t save the value of the custom field
 that I have. I have to go back in to the article and modify the field
 and then it saves ok.
 
  
 
 Is this a bug or is there a setting that I’m missing?
 
  
 
 Thanks,
 
 -Jeff

Hi, 

Jeff, thanks very much for this email.  It solved the problem we were
having with RTFM too when upgrading from 3.4 to 3.6 and trying to
extract RTFM articles.  Has this been verified as a bug, or is there
possibly something wrong with my installation?

Currently running RT 3.6.4 and RTFM 2.2.0RC5.  Also had the same problem
with RT 3.6.4 and RTFM 2.0.4.  With this patch for now it appears that
all is working flawlessly.

Thanks to all on the list for help and to the devs for a great product
in RT and RTFM,
Dave

Patch generated from Jeff's suggestions:

[EMAIL PROTECTED] Interface]# diff -u Web.pm.20070706 Web.pm
--- Web.pm.20070706 2007-07-06 09:34:50.0 -0400
+++ Web.pm  2007-07-06 09:36:36.0 -0400
@@ -1198,8 +1198,14 @@
 # format: Object-object class-object id-CustomField-CF
id-commands
 next unless $arg =~ /^Object-([\w:]+)-(\d*)-CustomField-(\d
+)-(.*)$/;

+   # added by dbh for rtfm issue
+   my $Object = $args{'Object'} if exists $args{'Object'};
+my $id = $Object-id || 0;
+
 # For each of those objects, find out what custom fields we
want to work with.
-$custom_fields_to_mod{ $1 }{ $2 || 0 }{ $3 }{ $4 } =
$ARGSRef-{ $arg };
+#$custom_fields_to_mod{ $1 }{ $2 || 0 }{ $3 }{ $4 } =
$ARGSRef-{ $arg };
+# this line modified by dbh too, for rtfm issue
+   $custom_fields_to_mod{ $1 }{ $2 || $id }{ $3 }{ $4 } =
$ARGSRef-{ $arg };
 }

 # For each of those objects

RE: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Jeff Stark
I just tried very similar to what you have Kevin, still no luck.

[EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} =
Sev 3')
-bash: syntax error near unexpected token `(' 


- Stark



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Falcone
Sent: Thursday, July 05, 2007 3:59 PM
To: RT Users
Subject: Re: [rt-users] RT CLI and Custom Fields


On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:

 has anyone successfully used the CLI to query RT Custom fields?  I 
 found a few posts, but with no responses.

 Here is an example:

 /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')

This works fine for me

./bin/rt  ls -i 'CF.{foo} = bar'

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

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


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

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

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


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


Re: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Kenneth Marshall
Why are you putting the value in parentheses? The simple string
in single quotes should work.

Ken

On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
 I just tried very similar to what you have Kevin, still no luck.
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} =
 Sev 3')
 -bash: syntax error near unexpected token `(' 
 
 
 - Stark
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Falcone
 Sent: Thursday, July 05, 2007 3:59 PM
 To: RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 
 On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
 
  has anyone successfully used the CLI to query RT Custom fields?  I 
  found a few posts, but with no responses.
 
  Here is an example:
 
  /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
 
 This works fine for me
 
 ./bin/rt  ls -i 'CF.{foo} = bar'
 
 -kevin
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com Commercial support:
 [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com
 
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com
 Commercial support: [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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


AW: [rt-users] RT at a glance with one column - how to enable?

2007-07-06 Thread Ham MI-ID, Torsten Brumm
Just remove all modules from the summary.

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: rt-users@lists.bestpractical.com rt-users@lists.bestpractical.com
Sent: Fri Jul 06 14:19:10 2007
Subject: [rt-users] RT at a glance with one column - how to enable?

Hi,
  I see that the RT at a glance with one column feature has been
backported, but I don't see how to enable it.  I tried going into
Configuration-Global-RT at a glance and deleting everything from
the summary area, then I edited my personal RT at a glance page and
hit the Reset to default button, which shows that there isn't
anything in the summary part - but it still shrinks the page to
allow for an empty summary.  Help?
...thnx,
...dave
-- 
Dave Alden
The Ohio State University
Department of Mathematics
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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

Re: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Kenneth Marshall
Wow. The next step for me would be to run the CLI rt in debug mode
and check that the commandline arguments are being passed in correctly.
It may be that you need to do some more escaping to have it work.

Ken

On Fri, Jul 06, 2007 at 07:43:25AM -0700, Jeff Stark wrote:
 When I remove the parenthesis and try this I get the following:
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = Sev
 3'
 rt: Invalid query: ''.
 Invalid query: ''.
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 'Sev
 3'
 rt: Invalid query: ''.
 Invalid query: ''. 
 
  
 -Stark
 
 
 
 -Original Message-
 From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 06, 2007 10:18 AM
 To: Jeff Stark
 Cc: Kevin Falcone; RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 Why are you putting the value in parentheses? The simple string in
 single quotes should work.
 
 Ken
 
 On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
  I just tried very similar to what you have Kevin, still no luck.
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} = 
  Sev 3')
  -bash: syntax error near unexpected token `(' 
  
  
  - Stark
  
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Kevin 
  Falcone
  Sent: Thursday, July 05, 2007 3:59 PM
  To: RT Users
  Subject: Re: [rt-users] RT CLI and Custom Fields
  
  
  On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
  
   has anyone successfully used the CLI to query RT Custom fields?  I 
   found a few posts, but with no responses.
  
   Here is an example:
  
   /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
  
  This works fine for me
  
  ./bin/rt  ls -i 'CF.{foo} = bar'
  
  -kevin
  ___
  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
  
  Community help: http://wiki.bestpractical.com Commercial support:
  [EMAIL PROTECTED]
  
  
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
  Buy a copy at http://rtbook.bestpractical.com
  
  ___
  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
  
  Community help: http://wiki.bestpractical.com Commercial support: 
  [EMAIL PROTECTED]
  
  
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
  Buy a copy at http://rtbook.bestpractical.com
  
 
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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


RE: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Jeff Stark
When I remove the parenthesis and try this I get the following:

[EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = Sev
3'
rt: Invalid query: ''.
Invalid query: ''.

[EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 'Sev
3'
rt: Invalid query: ''.
Invalid query: ''. 

 
-Stark



-Original Message-
From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 06, 2007 10:18 AM
To: Jeff Stark
Cc: Kevin Falcone; RT Users
Subject: Re: [rt-users] RT CLI and Custom Fields

Why are you putting the value in parentheses? The simple string in
single quotes should work.

Ken

On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
 I just tried very similar to what you have Kevin, still no luck.
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} = 
 Sev 3')
 -bash: syntax error near unexpected token `(' 
 
 
 - Stark
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin 
 Falcone
 Sent: Thursday, July 05, 2007 3:59 PM
 To: RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 
 On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
 
  has anyone successfully used the CLI to query RT Custom fields?  I 
  found a few posts, but with no responses.
 
  Here is an example:
 
  /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
 
 This works fine for me
 
 ./bin/rt  ls -i 'CF.{foo} = bar'
 
 -kevin
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com Commercial support:
 [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
 Buy a copy at http://rtbook.bestpractical.com
 
 ___
 http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
 
 Community help: http://wiki.bestpractical.com Commercial support: 
 [EMAIL PROTECTED]
 
 
 Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 Buy a copy at http://rtbook.bestpractical.com
 

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

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


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


RE: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Jeff Stark
Strangely enoughthis works just fine:

/opt/rt3/bin/rt list -i Status = 'in-review' AND Resolved  '2 days
ago' 
 
-Stark


-Original Message-
From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 06, 2007 10:47 AM
To: Jeff Stark
Cc: Kevin Falcone; RT Users
Subject: Re: [rt-users] RT CLI and Custom Fields

Wow. The next step for me would be to run the CLI rt in debug mode and
check that the commandline arguments are being passed in correctly.
It may be that you need to do some more escaping to have it work.

Ken

On Fri, Jul 06, 2007 at 07:43:25AM -0700, Jeff Stark wrote:
 When I remove the parenthesis and try this I get the following:
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = 
 Sev 3'
 rt: Invalid query: ''.
 Invalid query: ''.
 
 [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 
 'Sev 3'
 rt: Invalid query: ''.
 Invalid query: ''. 
 
  
 -Stark
 
 
 
 -Original Message-
 From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 06, 2007 10:18 AM
 To: Jeff Stark
 Cc: Kevin Falcone; RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 Why are you putting the value in parentheses? The simple string in 
 single quotes should work.
 
 Ken
 
 On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
  I just tried very similar to what you have Kevin, still no luck.
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} =

  Sev 3')
  -bash: syntax error near unexpected token `(' 
  
  
  - Stark
  
  
  
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Kevin

  Falcone
  Sent: Thursday, July 05, 2007 3:59 PM
  To: RT Users
  Subject: Re: [rt-users] RT CLI and Custom Fields
  
  
  On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
  
   has anyone successfully used the CLI to query RT Custom fields?  I

   found a few posts, but with no responses.
  
   Here is an example:
  
   /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
  
  This works fine for me
  
  ./bin/rt  ls -i 'CF.{foo} = bar'
  
  -kevin
  ___
  http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
  
  Community help: http://wiki.bestpractical.com Commercial support:
  [EMAIL PROTECTED]
  
  
  Discover RT's hidden secrets with RT Essentials from O'Reilly Media.

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

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

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


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


Re: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Kenneth Marshall
Do any of the CLI custom field queries work? Is the rt command
using the correct RT URL? These errors look similar to ones I
received with RT 3.4.

Ken

On Fri, Jul 06, 2007 at 07:52:45AM -0700, Jeff Stark wrote:
 Strangely enoughthis works just fine:
 
 /opt/rt3/bin/rt list -i Status = 'in-review' AND Resolved  '2 days
 ago' 
  
 -Stark
 
 
 -Original Message-
 From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 06, 2007 10:47 AM
 To: Jeff Stark
 Cc: Kevin Falcone; RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 Wow. The next step for me would be to run the CLI rt in debug mode and
 check that the commandline arguments are being passed in correctly.
 It may be that you need to do some more escaping to have it work.
 
 Ken
 
 On Fri, Jul 06, 2007 at 07:43:25AM -0700, Jeff Stark wrote:
  When I remove the parenthesis and try this I get the following:
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = 
  Sev 3'
  rt: Invalid query: ''.
  Invalid query: ''.
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 
  'Sev 3'
  rt: Invalid query: ''.
  Invalid query: ''. 
  
   
  -Stark
  
  
  
  -Original Message-
  From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 06, 2007 10:18 AM
  To: Jeff Stark
  Cc: Kevin Falcone; RT Users
  Subject: Re: [rt-users] RT CLI and Custom Fields
  
  Why are you putting the value in parentheses? The simple string in 
  single quotes should work.
  
  Ken
  
  On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
   I just tried very similar to what you have Kevin, still no luck.
   
   [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level} =
 
   Sev 3')
   -bash: syntax error near unexpected token `(' 
   
   
   - Stark
   
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 
   Falcone
   Sent: Thursday, July 05, 2007 3:59 PM
   To: RT Users
   Subject: Re: [rt-users] RT CLI and Custom Fields
   
   
   On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
   
has anyone successfully used the CLI to query RT Custom fields?  I
 
found a few posts, but with no responses.
   
Here is an example:
   
/opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
   
   This works fine for me
   
   ./bin/rt  ls -i 'CF.{foo} = bar'
   
   -kevin
   ___
   http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
   
   Community help: http://wiki.bestpractical.com Commercial support:
   [EMAIL PROTECTED]
   
   
   Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
 
   Buy a copy at http://rtbook.bestpractical.com
   
   ___
   http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
   
   Community help: http://wiki.bestpractical.com Commercial support: 
   [EMAIL PROTECTED]
   
   
   Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
   Buy a copy at http://rtbook.bestpractical.com
   
  
  
 
 
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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


RE: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Jeff Stark
Got itthe space in the custom field name was causing it to fail...

 /opt/rt3/bin/rt list -i 'CF.{Severity Level}' = 'Sev 4' 

That works.  Thanks for pushing in the right direction...sometimes I
just need a nudge.

-Stark

 
The contents of this communication are considered SumTotal Confidential,
and should not be shared with anyone outside of SumTotal, either
electronically or verbally, without the express permission of the
author(s).

-Original Message-
From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 06, 2007 11:00 AM
To: Jeff Stark
Cc: Kevin Falcone; RT Users
Subject: Re: [rt-users] RT CLI and Custom Fields

Do any of the CLI custom field queries work? Is the rt command using the
correct RT URL? These errors look similar to ones I received with RT
3.4.

Ken

On Fri, Jul 06, 2007 at 07:52:45AM -0700, Jeff Stark wrote:
 Strangely enoughthis works just fine:
 
 /opt/rt3/bin/rt list -i Status = 'in-review' AND Resolved  '2 days 
 ago'
  
 -Stark
 
 
 -Original Message-
 From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
 Sent: Friday, July 06, 2007 10:47 AM
 To: Jeff Stark
 Cc: Kevin Falcone; RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 Wow. The next step for me would be to run the CLI rt in debug mode and

 check that the commandline arguments are being passed in correctly.
 It may be that you need to do some more escaping to have it work.
 
 Ken
 
 On Fri, Jul 06, 2007 at 07:43:25AM -0700, Jeff Stark wrote:
  When I remove the parenthesis and try this I get the following:
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = 
  Sev 3'
  rt: Invalid query: ''.
  Invalid query: ''.
  
  [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 
  'Sev 3'
  rt: Invalid query: ''.
  Invalid query: ''. 
  
   
  -Stark
  
  
  
  -Original Message-
  From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 06, 2007 10:18 AM
  To: Jeff Stark
  Cc: Kevin Falcone; RT Users
  Subject: Re: [rt-users] RT CLI and Custom Fields
  
  Why are you putting the value in parentheses? The simple string in 
  single quotes should work.
  
  Ken
  
  On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
   I just tried very similar to what you have Kevin, still no luck.
   
   [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level}

   =
 
   Sev 3')
   -bash: syntax error near unexpected token `(' 
   
   
   - Stark
   
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of 
   Kevin
 
   Falcone
   Sent: Thursday, July 05, 2007 3:59 PM
   To: RT Users
   Subject: Re: [rt-users] RT CLI and Custom Fields
   
   
   On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:
   
has anyone successfully used the CLI to query RT Custom fields?

I
 
found a few posts, but with no responses.
   
Here is an example:
   
/opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')
   
   This works fine for me
   
   ./bin/rt  ls -i 'CF.{foo} = bar'
   
   -kevin
   ___
   http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
   
   Community help: http://wiki.bestpractical.com Commercial support:
   [EMAIL PROTECTED]
   
   
   Discover RT's hidden secrets with RT Essentials from O'Reilly
Media.
 
   Buy a copy at http://rtbook.bestpractical.com
   
   ___
   http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
   
   Community help: http://wiki.bestpractical.com Commercial support: 
   [EMAIL PROTECTED]
   
   
   Discover RT's hidden secrets with RT Essentials from O'Reilly
Media.
   Buy a copy at http://rtbook.bestpractical.com
   
  
  
 
 

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

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


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


Re: [rt-users] RT CLI and Custom Fields

2007-07-06 Thread Kenneth Marshall
Jeff,

You need to use a different syntax currently to use the rt CLI
to edit custom file values. e.g.

query:

rt ls Queue='General' AND CF.{SomeDefinedCustomField} is not 'NULL'

... but the edit would be something like:

rt edit ticket/1 add CF-SomeDefinedCustomField='Value'

Where the string SomeDefinedCustomField is the numerical value
for the custom field. Alternatively, the RT-REST perl module is
easy to use and works well.

Ken

On Fri, Jul 06, 2007 at 08:34:46AM -0700, Jeff Stark wrote:
 Hey Ken...sorry to be such a pain...quick question..can you edit
 ticket custom fields via CLI too? 
 
 I have this, but it's not working...I have a similar item that updates
 status and works great.  The query up to the | works fine.
 
 
 /opt/rt3/bin/rt list -i (Status = 'new' OR Status = 'open' OR Status =
 'stalled') AND ('CF.{Severity Level}' LIKE 'Sev 3' OR 'CF.{Severity
 Level}' LIKE 'Sev 4') AND ('CF.{Customer}' LIKE '%(p)' OR
 'CF.{Customer}' LIKE '%(ep)') | /opt/rt3/bin/rt edit - set
 'CF.{Severity Level}'='Sev 2  (Premier Support ONLY)'
 
 Everything I am seeing would indicate that it should, as if I use
 interactive mode, I can see the custom fields in the form.
 
 Any thoughts...thanks again for all of your help so far.
  
 - Stark
 
 -Original Message-
 From: Kenneth Marshall [mailto:[EMAIL PROTECTED] 
 Sent: Friday, July 06, 2007 11:00 AM
 To: Jeff Stark
 Cc: Kevin Falcone; RT Users
 Subject: Re: [rt-users] RT CLI and Custom Fields
 
 Do any of the CLI custom field queries work? Is the rt command using the
 correct RT URL? These errors look similar to ones I received with RT
 3.4.
 
 Ken
 
 On Fri, Jul 06, 2007 at 07:52:45AM -0700, Jeff Stark wrote:
  Strangely enoughthis works just fine:
  
  /opt/rt3/bin/rt list -i Status = 'in-review' AND Resolved  '2 days 
  ago'
   
  -Stark
  
  
  -Original Message-
  From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
  Sent: Friday, July 06, 2007 10:47 AM
  To: Jeff Stark
  Cc: Kevin Falcone; RT Users
  Subject: Re: [rt-users] RT CLI and Custom Fields
  
  Wow. The next step for me would be to run the CLI rt in debug mode and
 
  check that the commandline arguments are being passed in correctly.
  It may be that you need to do some more escaping to have it work.
  
  Ken
  
  On Fri, Jul 06, 2007 at 07:43:25AM -0700, Jeff Stark wrote:
   When I remove the parenthesis and try this I get the following:
   
   [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i 'CF.{Severity Level} = 
   Sev 3'
   rt: Invalid query: ''.
   Invalid query: ''.
   
   [EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i CF.{Severity Level} = 
   'Sev 3'
   rt: Invalid query: ''.
   Invalid query: ''. 
   

   -Stark
   
   
   
   -Original Message-
   From: Kenneth Marshall [mailto:[EMAIL PROTECTED]
   Sent: Friday, July 06, 2007 10:18 AM
   To: Jeff Stark
   Cc: Kevin Falcone; RT Users
   Subject: Re: [rt-users] RT CLI and Custom Fields
   
   Why are you putting the value in parentheses? The simple string in 
   single quotes should work.
   
   Ken
   
   On Fri, Jul 06, 2007 at 07:10:59AM -0700, Jeff Stark wrote:
I just tried very similar to what you have Kevin, still no luck.

[EMAIL PROTECTED] obj]# /opt/rt3/bin/rt list -i ('CF.{Severity Level}
 
=
  
Sev 3')
-bash: syntax error near unexpected token `(' 


- Stark



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of 
Kevin
  
Falcone
Sent: Thursday, July 05, 2007 3:59 PM
To: RT Users
Subject: Re: [rt-users] RT CLI and Custom Fields


On Jul 5, 2007, at 3:16 PM, Jeff Stark wrote:

 has anyone successfully used the CLI to query RT Custom fields?
 
 I
  
 found a few posts, but with no responses.

 Here is an example:

 /opt/rt3/bin/rt list -i ('CF.{Severity Level}' = 'Sev 3')

This works fine for me

./bin/rt  ls -i 'CF.{foo} = bar'

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

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


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

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

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


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

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

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


Discover RT's hidden secrets with RT Essentials from 

[rt-users] Forcing Status Changes

2007-07-06 Thread Mario Gomide

Hello list,

I am trying to set RT to work allowing or denying certain custom statuses.
For example, I have the X custom status and whenever a ticket has this 
status, the next status can only be Y or Z, but it cannot be A.


I read the foruns and I'm still not sure if it can be done by crating 
scrips or by modifying Ticket_Overlay.pm (or any other file).


Actually, I've started creating scripconditions that check the current 
status, but now I have to create the scripactions that compare the next 
status with the active status, and then it will take some action: if it 
isn't a possible status change, then go back and warn. If it is a 
possible status change, go ahead and change.


Has anyone tried to do this? Is there any other easier way? Is there 
something done, like forcing the status changes?


Thanks a lot!
Any suggestions are welcome!

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

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


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


Re: [rt-users] Forcing Status Changes

2007-07-06 Thread Gene LeDuc

Hi Mario,

What you want to do can be done in RT with an OnStatusChange scrip that 
checks $self-TransactionObj-OldValue and 
$self-TransactionObj-NewValue.  If the values don't meet your criteria, 
change the status back to the OldValue.  I've never used custom status 
values, so if they require unusual handling then this might not work.  If 
they work like standard status values, something like this should do the trick:


Condition: User Defined
Action: User Defined
Template: Global blank

Custom condition:
{ ### true if transaction is a status change
  my $Transaction = $self-TransactionObj;
  my $val = $Transaction-Type eq Status;
  return $val;
}

Custom prep action:
return 1;

Custom commit action:
### Check to make sure new status value makes sense
my $Transaction = $self-TransactionObj;
my $Ticket = $self-TicketObj;
my $Old = $Transaction-OldValue;
my $New = $Transaction-NewValue;
if ($Old eq X  ! ($New eq Y || $New eq Z)) {
  $Ticket-_Set(Field=Status, Value=$Old, RecordTransaction=0);
}
return 1;

I just typed this in without confirming that it works as-is, so there might 
be something off in the syntax, but here's what it's doing:

1.  Fire the scrip if there's been a status change
2.  See if the old value was X and the new value is not Y or Z.  If so...
3.  Set the status back to the old value without creating a transaction (so 
scrips don't fire again)


Since you have a specific list of allowed changes (Y and Z) you don't 
have to concern yourself with A.


Regards,
Gene

At 09:56 AM 7/6/2007, Mario Gomide wrote:

Hello list,

I am trying to set RT to work allowing or denying certain custom statuses.
For example, I have the X custom status and whenever a ticket has this 
status, the next status can only be Y or Z, but it cannot be A.


I read the foruns and I'm still not sure if it can be done by crating 
scrips or by modifying Ticket_Overlay.pm (or any other file).


Actually, I've started creating scripconditions that check the current 
status, but now I have to create the scripactions that compare the next 
status with the active status, and then it will take some action: if it 
isn't a possible status change, then go back and warn. If it is a possible 
status change, go ahead and change.


Has anyone tried to do this? Is there any other easier way? Is there 
something done, like forcing the status changes?


Thanks a lot!
Any suggestions are welcome!

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

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


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



--
Gene LeDuc, GSEC
Security Analyst
San Diego State University 


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

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


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


Re: [rt-users] RT at a glance with one column - how to enable?

2007-07-06 Thread Dave Alden
Hi,

On Fri, Jul 06, 2007 at 04:22:48PM +0200, Ham MI-ID, Torsten Brumm wrote:
 Just remove all modules from the summary.

I think I've done that.  :-)  In Customize RT at a glance, the area
RT at a glance: summary shows nothing in the right hand column.
When the RT at a glance page intially loads, it teases me with a
full-screen effect, then it quickly shrinks the width of the main
part of the screen to ~2/3 of the screen.  Help?

...dave

-- 
Dave Alden
The Ohio State University
Department of Mathematics
___
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

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


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


[rt-users] Javascript files give syntax error: not substituted?

2007-07-06 Thread Gary Oberbrunner
I'm pretty new at RT.  Just installed 3.6.4 on Linux FC4, MySQL, apache,
mod_perl.  RT pretty much all works, except the JavaScript hide/show
stuff doesn't.  That seems to be because all the js files in
/rt/NoAuth/js use % as a comment char and seem to need some kind of
text-substitution.  But they're coming through unmodified to the client
side.  Here's one such error:

Error: syntax error
Source File: http://my.domain/rt/NoAuth/js/util.js
Line: 1
Source Code:
%# BEGIN BPS TAGGED BLOCK {{{

Are these files supposed to get processed on the server before getting
sent to the client?  My httpd config is very simple (my RT runs in
http://my.domain/rt):

Alias /rt /opt/rt3/share/html
AddDefaultCharset UTF-8

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
Location /rt
  RewriteEngine On
  RedirectMatch permanent (.*)/$ $1/index.html
  SetHandler perl-script
  PerlHandler RT::Mason
/Location


So what have I misconfigured?

thx,

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

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


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