Extract Custom Field and 3.4.2

Everybody,

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.”

Template Name: TemplateParseCustom
Template Body: testcf|body|.*|q

Scrip Name: ScripParseCustom
Scrip Condition: On Create
Scrip Action: Extract Custom Field Values
Scrip Template: TemplateParseCustom
Scrip Stage : TransactionCreate

My RT config is:

Mysql 4.0.21 standard
Perl 5.8.3
Apache with ModPerl2

Thanks in advance.

Kevin Sonney

Hello,

–Am 15. Juni 2005 10:59:14 -0700 schrieb Kevin Sonney
KevinSonney@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

Regards,
Dirk.
Dr. Dirk Pape (Projektleitung Campus Management)
Fachbereich Mathematik und Informatik der FU Berlin
Grunewaldstr. 34a, 14195 Berlin
Tel. +49 (30) 838 75143, Fax. +49 (30) 838 54654

Hello,

–Am 15. Juni 2005 10:59:14 -0700 schrieb Kevin Sonney
KevinSonney@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

Hello,

–Am 16. Juni 2005 08:27:35 -0700 schrieb Kevin Sonney
KevinSonney@zumiez.com:

My template has the following body:

testcf|Body|(.*)|

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

testcf EnterThisValue

if you have

testcf EnterThisValue

in your email body and want “EnterThisValue” to be entered into testcf, you
need to specify

testcf|Body|testcf\s(.*)$|

in the template.

Regards, Dirk.

Dr. Dirk Pape (Projektleitung Campus Management)
Fachbereich Mathematik und Informatik der FU Berlin
Grunewaldstr. 34a, 14195 Berlin
Tel. +49 (30) 838 75143, Fax. +49 (30) 838 54654

Hello,

All is working, quick note regarding extracting custom fields. Make
sure the email is sent as plain text and not HTML. Damn you Outlook!

Thanks for all the help,

Kevin

My template has the following body:

testcf|Body|(.*)|

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

testcf EnterThisValue

if you have

testcf EnterThisValue

in your email body and want “EnterThisValue” to be entered into testcf,
you need to >specify