christiane1

XOG: Timesheet - Problems with Update of Actuals

Discussion created by christiane1 on Aug 1, 2013
Latest reply on Aug 2, 2013 by christiane1
Hello,
I have to import every day actuals in a timesheet.

I tried the following XML (which worked):

<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">

<Header version="6.0.11" action="write" objectType="timeperiod" externalSource="NIKU"/>

<TimePeriods>


<TimePeriod finish="2013-09-01T00:00:00" start="2013-08-01T00:00:00">



<TimeSheets>




<TimeSheet ID="5001011" resourceID="z_test1" version="2" action="add" status="0">





<TimeSheetEntries>






<TimeSheetEntry projectID="z_bearbeitung_incide" assignmentID="5003038" taskID="~rmw" chargeCodeID="chgInc">







<DailyActuals>








<Actual actualDate="2013-08-01" amount="1"/>







</DailyActuals>






</TimeSheetEntry>





</TimeSheetEntries>




</TimeSheet>



</TimeSheets>


</TimePeriod>

</TimePeriods>
</NikuDataBus>

BUT when I add the time for another day using, e.g.

<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">

<Header version="6.0.11" action="write" objectType="timeperiod" externalSource="NIKU"/>

<TimePeriods>


<TimePeriod finish="2013-09-01T00:00:00" start="2013-08-01T00:00:00">



<TimeSheets>




<TimeSheet ID="5001011" resourceID="z_test1" version="3" action="add" status="0">





<TimeSheetEntries>






<TimeSheetEntry projectID="z_bearbeitung_incide" assignmentID="5003038" taskID="~rmw" chargeCodeID="chgInc">







<DailyActuals>








<Actual actualDate="2013-08-02" amount="2"/>







</DailyActuals>






</TimeSheetEntry>





</TimeSheetEntries>




</TimeSheet>



</TimeSheets>


</TimePeriod>

</TimePeriods>
</NikuDataBus>

Then I have the effect that the Task is "splitted" so that for every day a new line will appear in Clarity, see screenshot in the attachment.

Is there a possibility to insert the actuals one after the other in "one line"?
action=replace deletes the entry which has been added before.

Thank you very much.

Attachments

Outcomes