<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.18.1">
</HEAD>
<BODY>
Hi all,<BR>
<BR>
I want create this scrip:<BR>
<BR>
condition: user defined<BR>
action: create tickets<BR>
template: my template<BR>
stage : transaction create<BR>
<BR>
custom condition: <BR>
<BR>
#test if this ticket is now created<BR>
return 0 unless $self->TransactionObj->Type() eq 'Create';<BR>
<BR>
#test if my cf has value 'work'<BR>
return 0 unless $self->TicketObj->FirstCustomFieldValue('cf') eq 'work';<BR>
<BR>
return 1;<BR>
<BR>
=================<BR>
My second test doesn't work because when the transaction type is create<BR>
the value of cf is null (2 diferent transactions).<BR>
How can i solve this problem?<BR>
<BR>
</BODY>
</HTML>