Aspose Task Duration and Finish date Edit

Hi,

We are trying to edit a mpp file which already have task by editing the start date and the finish date. While using Curl to edit, it is updating the start time but the finish time and the duration are not updated.

Uploaded an image from our postman environment. We have tried combination of mode and recalculate variables. Can you please help.
image.png (196.5 KB)

@clearspace

Please share your sample input document and expected output document with us. We will look into the issue and guide you accordingly.

Hi,

Below are the required files and the screenshot from postman. Even though the api output shows the dates have changed, when file is opened it has not.
Mpp files
Screenshot 2024-01-03 at 11.00.17 AM.png (357.3 KB)

@clearspace

We are looking into the issue(TASKSCLOUD-810) and will update you shortly.

Hi,

Is there an update on this?

@clearspace

I am afraid the issue investigation is still not complete. We will update you as soon as we conclude it.

Hi Tilal,

Is there a workaround which can help me achieve the desired result? Currently we are stuck as the downstream processes are dependent on this.

@clearspace

We have recorded your concern and requested our product team to plan the issue investigation and share an ETA/workaround of it.

Till,

Any update from the product team?

@clearspace

The issue is still pending for investigation in the queue as the product team is busy with other priority issues. We will provide you with an update once we have made some significant progress towards issue resolution.

@clearspace

Thanks for your patience. We have investigated the issue, and as per your shared postman request screenshot, it seems you are using a manually scheduled task (isManual == true) and also not recalculating the project according to changes (recalculate == false). In this scenario, if you want to change start and finish dates as well as duration, then you do not need to change the original values in those fields but the manual ones. So instead of ‘start’, ‘finish’ and ‘duration’ fields, you need to set ‘manualStart’, ‘manualFinish’ and ‘manualDuration’ fields, respectively. All other values should not be changed.

Please check the following cURL example, just paste valid token there and you are ready to go:

curl -X PUT 'https://api.aspose.cloud/v3.0/tasks/Blank.mpp/tasks/27?mode=0&recalculate=false' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_TOKEN_HERE' \
  -d '{"uid":27,"id":27,"name":"Try23","duration":"08:00:00","start":"2023-11-22T03:00:00.000Z","finish":"2023-11-22T12:00:00.000Z","percentComplete":0,"percentWorkComplete":0,"isActive":true,"constraintType":"AsSoonAsPossible","durationVariance":"08:00:00","earlyFinish":"2023-11-22T12:00:00.000Z","earlyStart":"2023-11-22T03:00:00.000Z","fixedCostAccrual":"Prorated","guid":"E475FAA6-AAA3-42D1-9085-88EFD18E04CB","lateFinish":"2023-11-22T12:00:00.000Z","lateStart":"2023-11-22T03:00:00.000Z","isLevelAssignments":true,"canLevelingSplit":true,"isMarked":false,"isMilestone":false,"isCritical":true,"subprojectName":null,"isSummary":false,"subtasksUids":[],"outlineLevel":2,"isEstimated":true,"remainingDuration":"08:00:00","isResumeValid":false,"isManual":true,"manualDuration":"09:00:00","type":"FixedUnits","wbs":"4.2","priority":500,"levelingDelayFormat":"ElapsedDay","predecessors":"","successors":"","isExpanded":true,"earnedValueMethod":"PercentComplete","baselines":[],"extendedAttributes":[],"outlineCodes":[],"manualStart":"2023-01-05T08:00:00","manualFinish":"2023-01-20T08:00:00"}'