<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Kevin,<br>
<br>
OK. I changed the code to this:<br>
<br>
#------------------------------------------------------------------------------<br>
# build ticket values<br>
#------------------------------------------------------------------------------<br>
%ticket_vals =<br>
(<br>
Subject => $ISSUE_DESCRIPTION,<br>
MIMEObj => $mimeObj,<br>
Creator => 4233, #API bug won't look up corresponding id
for name<br>
Owner => 4233,<br>
Requestor => 4233,<br>
Queue => 14,<br>
Priority => 3,<br>
InitialPriority => 3,<br>
FinalPriority => 3,<br>
Started => '2009-08-01 0:00:00',<br>
Resolved => '2009-08021 0:00:00',<br>
Status => ( "resolved" )<br>
);<br>
<br>
( $ticketid, $transaction_object, $err ) = $ticket->Create(
%ticket_vals );<br>
# print "Open Date - ", $opened, " Resolved Date - ", $resolved;<br>
print "New_Ticket request=", $NUMBER, " $err \n"; #debug<br>
die "New_Ticket Error: $err \n" unless $ticketid;<br>
<br>
return $ticketid; #Ticket.id<br>
}<br>
<br>
I put literal "hard-coded" values in it instead of in an object and
that didn't work either.<br>
<br>
Still nulls in both the date fields (Started, Resolved) I'm trying to
fill and no errors.<br>
<br>
Kenn<br>
LBNL<br>
<br>
<br>
On 8/27/2009 11:27 AM, Kevin Falcone wrote:
<blockquote cite="mid:20090827182704.GA38597@jibsheet.com" type="cite">
<pre wrap="">On Thu, Aug 27, 2009 at 10:58:52AM -0700, Ken Crocker wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> Kevin,
When I used "hard-coded" dates this is what I get:
</pre>
</blockquote>
<pre wrap=""><!---->
Kenn
I just wrote and ran this:
my ($id, $msg) = $Ticket->Create( Queue => 'General',
Subject => 'test manual creation',
Started => '2009-08-01 06:10:11',
Resolved => '2009-08-02 06:12:13',
Created => '2009-08-01 05:00:00' );
(4 hour offset caused by the internal GMTness of the API)
Created: Sat Aug 01 01:00:00 2009
Starts: Not set
Started: Sat Aug 01 02:10:11 2009
Last Contact: Not set
Due: Not set
Closed: Sun Aug 02 02:12:13 2009
LastUpdated is special cased and you'll have to bludgeon it a bit with
__Set, but you should concentrate on what your Resolved isn't working
-kevin
_______________________________________________
<a class="moz-txt-link-freetext" href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</a>
Community help: <a class="moz-txt-link-freetext" href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</a>
Commercial support: <a class="moz-txt-link-abbreviated" href="mailto:sales@bestpractical.com">sales@bestpractical.com</a>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at <a class="moz-txt-link-freetext" href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</a>
</pre>
</blockquote>
</body>
</html>