// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java // The path to the documents directory. String dataDir = Utils.getDataDir(CreateTasks.class); Project project = new Project(); Task task = project.getRootTask().getChildren().add("Summary1"); Task subtask = task.getChildren().add("Subtask1");