AW: CustomField transactions not being created

How do you extract the values into the cf’s? Do you use the extractcustomfieldsvalues from dirk pape? If so, check that youi have enabled the record transaction inside the template, this gives you a hint.

Next, have you checked the exec order of your scrips or is all done by a single scrip?

Torsten-----Original Message-----
From: rt-users-bounces@lists.bestpractical.com rt-users-bounces@lists.bestpractical.com
To: rt Users rt-users@lists.bestpractical.com
Sent: Fri Apr 06 19:47:47 2007
Subject: [rt-users] CustomField transactions not being created

Hi All,

I’m running RT 3.6.3 and am baffled by a transaction issue. I have an
OnCreate scrip that extracts information from the e-mail and populates 2
custom fields with the info. Then it sets a 3rd custom field to a value
that I expect to trigger another scrip.

My problem is that no transactions are being created when I set the values
of the custom fields, so the conditions that should trigger the other
scrips aren’t happening.

Looking at the Transactions table in the database, I see 5 transactions for
this ticket - 4 that create pseudo-groups and 1 that creates the
ticket. There aren’t any that show that I modified the custom fields,
although they have the expected values. The ticket history only shows the
ticket creation, no changes to it. Is this because it’s within an OnCreate
scrip? If I manually set one of the custom fields in an existing ticket
from within RT, the transactions are recorded and my scrips fire as expected.

Does anyone know how I can get transactions to be created within the scrip
for custom fields?

Thanks,
Gene

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: sales@bestpractical.com

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

Hi Torsten,

At 05:10 PM 4/6/2007, Ham MI-ID, Torsten Brumm wrote:

How do you extract the values into the cf’s? Do you use the
extractcustomfieldsvalues from dirk pape? If so, check that youi have
enabled the record transaction inside the template, this gives you a hint.

Torsten

That was the hint I needed. The function I was using wasn’t setting the
RecordTransaction bit, so the transaction was invisible. I changed the
function after reviewing the “dirk pape” code and it’s working now.

Thanks!
Gene

Gene LeDuc, GSEC
Security Analyst
San Diego State University