[rt-users] Group chart by custom field of Queue

2013-10-14 Thread andkulb
Hello, 

My queues in RT belong to some sort of departament (custom field). How can I
get a chart, showing tickets by departament? 

What i find out, is that charts are made by ticked dependencies, but not the
the dependencies of tickets queues. 

Thank you in advance.



--
View this message in context: 
http://requesttracker.8502.n7.nabble.com/Group-chart-by-custom-field-of-Queue-tp55477.html
Sent from the Request Tracker - User mailing list archive at Nabble.com.


[rt-users] Unable to create ticket in RT 4.2

2013-10-14 Thread Max McGrath
Hi all -

Upgraded from 4.0.16 to 4.2 on a test VM.  I am unable to create a ticket
via the web interface...this is what I'm seeing in rt.log.

[6608] [Mon Oct 14 15:11:46 2013] [error]: Can't locate object method
DefaultOnCreate via package default (perhaps you forgot to load
default?) at /opt/rt4/local/html/Ticket/Create.html line 71.

Stack:
  [/opt/rt4/local/html/Ticket/Create.html:71]
  [/opt/rt4/share/html/Widgets/TitleBox:56]
  [/opt/rt4/local/html/Ticket/Create.html:107]
  [/opt/rt4/share/html/Ticket/autohandler:66]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:680]
  [/opt/rt4/sbin/../lib/RT/Interface/Web.pm:368]
  [/opt/rt4/share/html/autohandler:53]
(/opt/rt4/sbin/../lib/RT/Interface/Web/Handler.pm:211)

--
Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgr...@carthage.edu


Re: [rt-users] Unable to create ticket in RT 4.2

2013-10-14 Thread Alex Vandiver
On Mon, 2013-10-14 at 10:15 -0500, Max McGrath wrote:
 Hi all -
 
 
 Upgraded from 4.0.16 to 4.2 on a test VM.  I am unable to create a
 ticket via the web interface...this is what I'm seeing in rt.log.
 
 
 [6608] [Mon Oct 14 15:11:46 2013] [error]: Can't locate object method
 DefaultOnCreate via package default (perhaps you forgot to load
 default?) at /opt/rt4/local/html/Ticket/Create.html line 71.

The above path shows that you have a local override of the entirety of
Ticket/Create.html  You will need to update it for the changes in RT
4.2.  If possible, I suggest re-writing your override as a callback
instead, which will simplify future upgrades.
 - Alex





[rt-users] Iterating through multi select CF descriptions

2013-10-14 Thread Brent Wiese
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] Unable to create ticket in RT 4.2

2013-10-14 Thread Max McGrath
Thanks Alex.  It was a local override.  I just got rid of it and am using
the default Create.html.  I can create tickets now.

Thanks!

Max

--
Max McGrath
Network Administrator
Carthage College
262-552-5512
mmcgr...@carthage.edu


On Mon, Oct 14, 2013 at 1:00 PM, Alex Vandiver ale...@bestpractical.comwrote:

 On Mon, 2013-10-14 at 10:15 -0500, Max McGrath wrote:
  Hi all -
 
 
  Upgraded from 4.0.16 to 4.2 on a test VM.  I am unable to create a
  ticket via the web interface...this is what I'm seeing in rt.log.
 
 
  [6608] [Mon Oct 14 15:11:46 2013] [error]: Can't locate object method
  DefaultOnCreate via package default (perhaps you forgot to load
  default?) at /opt/rt4/local/html/Ticket/Create.html line 71.

 The above path shows that you have a local override of the entirety of
 Ticket/Create.html  You will need to update it for the changes in RT
 4.2.  If possible, I suggest re-writing your override as a callback
 instead, which will simplify future upgrades.
  - Alex