// 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(IdentifyCrossProjectTasks.class); Project externalProject = new Project(dataDir + "External.mpp"); Task externalTask = externalProject.getRootTask().getChildren().getByUid(4); // ID of the task in the external project System.out.println(externalTask.get(Tsk.ID).toString()); // ID of the task in the original project System.out.println(externalTask.get(Tsk.EXTERNAL_ID).toString());