Hello
While import MPX file link type is always FinishToFinish. Tested on Aspose Tasks 18.3, 18.4 and 18.5.
Steps to reproduce:
-
Run java code:
public static void main(String[] args) { Project project = new Project(); Task task1 = project.getRootTask().getChildren().add("Task 1"); Task task2 = project.getRootTask().getChildren().add("Task 2"); project.getTaskLinks().add(task1, task2, TaskLinkType.FinishToStart); project.save("./project.mpx", SaveFileFormat.MPX); System.out.println("link type before: " + project.getTaskLinks().toList().get(0).getLinkType()); Project importedProject = new Project("./project.mpx"); System.out.println("link type after : " + importedProject.getTaskLinks().toList().get(0).getLinkType()); }
Result now:
-
Link type before export and after import are different.
Link Type before: 1 Link Type after : 0
Expected:
-
Link type before export and after import should be equal.
Link Type before: 1 Link Type after : 1