Set DueDate while comment/corresponding to a ticket?

Hi everybody,

is there an easy way to set DueDate while updating a ticket using the webui (Ticket/Update.html) and not breaking the SLA SetDueDate-mechanism?

I would like to change the DueDate using Update.html if necessary (but not always). So,

  • if the user changes DueDate, it should be set.
  • If the user does not touch DueDate, the RT SLA-mechanism should manage dueDate.

In RT 4.2.11 my callback Ticket/Update.html/AfterWorked worked fine - but since 4.4.2, RT shows the values of the date fields inside the web forms. This means, RT takes always the web-form value and therefore, it overwrites DueDate value from the SLA-scrips.

Has somebody an idea how to implement my requirement?

regards
Danny

local/html/Callbacks/dtnet/Ticket/Update.html/AfterWorked:


<&|/l&>Due</&>:

<& /Elements/SelectDate,
menu_prefix => ‘Due’,
current => 0,
Default => $TicketObj->DueObj->Unix ? $TicketObj->DueObj->ISO(Timezone => ‘user’) : ‘’,
Object => $TicketObj,
ARGSRef => %ARGS,
&>
(<% $TicketObj->DueObj->AsString %>)
<%INIT>
my $TicketObj = $Ticket;
</%INIT>

<%ARGS>
$Ticket => undef
</%ARGS>

Hm…
RT does not show dates on Update.html page.
For dates there is separate page ModifyDates.html