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

Free Support Forum - aspose.com

Imported MPX project has wrong link type

Hello
While import MPX file link type is always FinishToFinish. Tested on Aspose Tasks 18.3, 18.4 and 18.5.

Steps to reproduce:

  1. 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

@SoftwarePlant,

Thank you for writing to Aspose support team.

This issue is observed using latest version Aspose.Tasks for Java 18.5.0 and logged under Id: TASKSJAVA-590 for detailed analysis. You will be automatically notified once any update is ready to share.

when new version will be available on maven repo?

@SoftwarePlant,

The version is under QA process and will soon be available. We’ll notify you here as it is available for download.

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