Unable to create task without start and end date and empty duration (JAVA)

Hi Team,

Our organisation has purchased Licensed version for Aspose JAVA.
In one of the requirement, we need to show unscheduled tasks (tasks with empty start and end dates in MPP file).

Can u share code snippet in java to show empty dates tasks in MPP

i tried using this code but still its showing dates in mpp file

Task subtask = task.getChildren().add(appNum);
                subtask.set(Tsk.IS_MARKED, false);
                subtask.set(Tsk.IGNORE_WARNINGS, false);
                subtask.set(Tsk.ACTUAL_DURATION, project.getDuration(numOfDays, TimeUnitType.Day));
                
                if(startDate ==0){
                    subtask.set(Tsk.IS_MANUAL, true);
                    subtask.set(Tsk.START_TEXT, "");
                    subtask.set(Tsk.ACTUAL_DURATION, project.getDuration(0));
                    subtask.set(Tsk.DURATION_TEXT, "");
                }
                else{
                    subtask.set(Tsk.ACTUAL_START, _start);
                }
                if(endDate ==0){
                    subtask.set(Tsk.IS_MANUAL, true);
                    subtask.set(Tsk.FINISH_TEXT, "");
                    subtask.set(Tsk.ACTUAL_DURATION, project.getDuration(0));
                    subtask.set(Tsk.DURATION_TEXT, "");
                }
                else{
                    subtask.set(Tsk.ACTUAL_FINISH, _end);
                }

@parthpithadia

I have shared the response with you in following thread post for your convenience in other thread as well.