[rt-users] Datetime customfield’s values not being stored in ticket created with RT::Ticket
Landon Stewart
lstewart at iweb.com
Tue Nov 26 19:19:34 EST 2013
Hello,
Basically I’m successfully creating a ticket where a bunch of other
CustomFields are set properly except these two Datetime customfields. The
CFs apply to all applicable queues and are type “Select datetime”. I’ve
simplified the ->Create() below a little but generally this is working
perfectly *except* for the CustomerCreated and ServerCreated fields. The
new ticket in the “Investigations" queue does not have values for those
(totally unset).
my ($newinvid, $newinvTransObj, $inverrorMsg) =
$new_investigation->Create(
'Queue' => "Investigations",
'Subject' => $self->TransactionObj->Subject,
'Status' => 'open',
'CustomField-83' => 'Customer Notification',
'MemberOf' => $IncidentObj->id,
'Priority' => $IncidentObj->Priority,
'CustomField-65' =>
$IncidentObj->FirstCustomFieldValue('Classification'),
'CustomField-75' =>
$IncidentObj->FirstCustomFieldValue('Customer'),
'CustomField-77' =>
$IncidentObj->FirstCustomFieldValue('Email'),
'CustomField-78' =>
$IncidentObj->FirstCustomFieldValue('CustomerCreated'),
'CustomField-79' =>
$IncidentObj->FirstCustomFieldValue('ServerCreated'),
'CustomField-81' =>
$IncidentObj->FirstCustomFieldValue('PreferredLanguage'),
'CustomField-86' =>
$IncidentObj->FirstCustomFieldValue('CCName'),
'CustomField-87' =>
$IncidentObj->FirstCustomFieldValue('TechEmail'),
'CustomField-88' =>
$IncidentObj->FirstCustomFieldValue('ClientName'),
'CustomField-91' =>
$IncidentObj->FirstCustomFieldValue('ClientGroups'),
'CustomField-92' =>
$IncidentObj->FirstCustomFieldValue('ProductPrice'),
'CustomField-104' =>
$IncidentObj->FirstCustomFieldValue('ServerType'),
'CustomField-105' =>
$IncidentObj->FirstCustomFieldValue('OperatingSystem'),
'MIMEObj' => $InvMIMEObj,
);
Do they have to be converted to RT::Date objects or even as far as AsString
to be used as the value?
--
Landon Stewart :: lstewart at iweb.com
Lead Specialist, Abuse and Security Management
Spécialiste principal, gestion des abus et sécurité
http://iweb.com :: +1 (888) 909-4932
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20131126/2f6a7ea2/attachment.htm>
More information about the rt-users
mailing list