We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Incorrect task links count after export

Hello
While creating project with two tasks with same name and creating link from only one of them to parent. After import both tasks with same name got a link to parent.

Initial state:
A
|—> B
| B

After export and import:
A
|—> B
|—> B

How to reproduce:

Project project = new Project();
Task task1 = project.getRootTask().getChildren().add("A");
Task task2 = project.getRootTask().getChildren().add("B");
Task task3 = project.getRootTask().getChildren().add("B");

project.getTaskLinks().add(task1, task2, TaskLinkType.FinishToStart);
project.save("./project.mpx", SaveFileFormat.MPX);

System.out.println("links count: " + project.getTaskLinks().size());

Project importedProject = new Project("./project.mpx");

System.out.println("links count: " + importedProject.getTaskLinks().size());

Code result:
links count: 1
links count: 2

Expected code result:
links count: 1
links count: 1

@SoftwarePlant,

Thank you for contacting Aspose support team.

This issue is reproduced and logged in our issue tracking system under Id:TASKSJAVA-675 for detailed analysis. We will write back here once any update is available in this regard.

The issues you have found earlier (filed as TASKSJAVA-675) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan