[rt-users] Extract Custom Field and 3.4.2

Kevin Sonney KevinSonney at zumiez.com
Thu Jun 16 11:27:35 EDT 2005


Hello,

--Am 15. Juni 2005 10:59:14 -0700 schrieb Kevin Sonney
<KevinSonney at zumiez.com>:

> Has anyone been able to get ExtractCustomFieldValues working with RT 
> 3.4.2?
>
> I currently have a fresh install of 3.4.2 with
> ExtractCustomFieldsValues1.2b1 but am having problems getting the 
> parsing to work.  Below is my global scrip and template, I have a 
> CustomField "testcf" that has been applied to queue "Test."

>1.2b1 works well with RT 3.4.2 in my test system.
>Can you, please, be more specific what error you are seeing.
>It might be helpful if you set

>Set($LogDir, '/var/log/rt3');
>Set($LogToFileNamed , "rt-3.4.2.log");
>Set($LogToFile      , 'debug');

>in your RT_Siteconfig.pm and look into your logfile

I'm seeing the following:

[Thu Jun 16 14:12:28 2005] [debug]: load cf testcf
(/var/opt/rt3.4.2/lib/RT/Action/ExtractCustomFieldValues.pm:38)
[Thu Jun 16 14:12:28 2005] [debug]: load cf done: 1 Fetched from cache
(/var/opt/rt3.4.2/lib/RT/Action/ExtractCustomFieldValues.pm:44)
[Thu Jun 16 14:12:28 2005] [debug]: look for cf in Body
(/var/opt/rt3.4.2/lib/RT/Action/ExtractCustomFieldValues.pm:48)
[Thu Jun 16 14:12:28 2005] [debug]: matched value:
(/var/opt/rt3.4.2/lib/RT/Action/ExtractCustomFieldValues.pm:57)
[Thu Jun 16 14:12:28 2005] [info]: Ticket 44 created in queue 'Test' by
kevins (/var/opt/rt3.4.2/lib/RT/Ticket_Overlay.pm:730)

I think everything is working (scrip is running on new ticket, etc...)
except finding the value to be put into the custom field.  According to
ExtracCustomFieldValues.pm, I'm missing the following log values:

$RT::Logger->debug("transformed ($PostEdit) value: $_");
$RT::Logger->debug("found value for cf: $_");
$RT::Logger->info("CustomFieldValue ($CustomFieldName,$_) added: $id
$msg");

My template has the following body:

testcf|Body|(.*)|

With this template, how should I be formatting the email?

testcf EnterThisValue

Thanks,

Kevin



More information about the rt-users mailing list