[rt-users] CommandByMail and Custom Fields

Chris Hobbs chris at clanhobbs.org
Thu Nov 30 12:05:54 EST 2006


I have CommandByMail working correctly on a new 3.6.1 install for all 
standard fields. However, I am unable to get it to correctly work with 
Custom Fields. I'm hoping someone will spot the error I've obviously 
missed as there's nothing on the wiki or mailing list that indicates 
this functionality is not working for others.

I have a Custom Field called 'site' that is type 'Select One Value'. If 
I send the following line in an e-m ail to rt:

CustomField.{site}: EAS

it does not set the field. I've added some additional logging to try to 
figure out what's going on in TakeAction.pm. I've found that it does run 
the _CanonicalizeCommand function and changes the key to 
'customfield{site}'. It does not appear to trigger the following chunk 
of code however:

# Canonicalize custom fields
        my $custom_fields = $queue->TicketCustomFields;
        while ( my $cf = $custom_fields->Next ) {
            my %tmp = _ParseAdditiveCommand( \%cmds, 0, "CustomField{". 
$cf->Name ."}" );
            next unless keys %tmp;
            $RT::Logger->warning( "Canonicalize custom fields" );
            $create_args{ 'CustomField-' . $cf->id } = [ 
_CompileAdditiveForCreate(%tmp) ];
        }

That is, my additional Logger line never gets triggered and it seems 
that it should.

Any thoughts on what to look for would be greatly appreciated!

Chris








More information about the rt-users mailing list