[rt-users] setting the DueData upon ticket creation
Ruslan U. Zakirov
Ruslan.Zakirov at miet.ru
Fri Jul 15 12:32:41 EDT 2005
Michael Bochynski wrote:
> Ruslan,
>
> On Fri, 2005-07-15 at 11:32 -0400, Ruslan U. Zakirov wrote:
>
>>Michael Bochynski wrote:
>>
>>>Hi All,
>>>
[snip]
>>
>>>and so on for every field.
>>>
>>>However, I cannot set the DueDate later on. I tried with
>>>$self->TicketObj->SetDue($date)
>>
>>don't forget ; at the end of lines.
>
>
> :) I know .. it happens from time to time ;)
>
>>also I'm sure RT log has entries that scrip action has errors.
>>Please, analize logs.
>
>
> I did it ...
> and still problems.
>
> When I use SetSubject ($date) it works, it sets the subject as
> 7-25-2005. However the same var for SetDate craps out with the following
> errors:
> [Fri Jul 15 16:06:45 2005] [error]: error: couldn't parse head; error
> near:
> 0
>
> (/usr/local/rt3.2.1//lib/RT/Template_Overlay.pm:341)
> [Fri Jul 15 16:06:46 2005] [warning]:
> at /usr/local/rt3.2.1//lib/RT/Date.pm line 170
> RT::Date::Set('RT::Date=HASH(0xc774e20)', 'Format', 'ISO',
> 'Value', '7-25-2006') called
[snip]
>
>
> Do I have to format the $date to a date format? If so, how?
Date should be in ISO format. ISO: "YYYY-MM-DD hh:mm:ss".
>
>
>>>however I have problems with creating proper $date field.
>>>
>>>Any ideas?
>>>
>>>Michael
>>>_______________________________________________
>>>http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>>>
>>>Be sure to check out the RT Wiki at http://wiki.bestpractical.com
>>>
>>
>>
>>
>
More information about the rt-users
mailing list