Task Info: wrong duration calculation

  • 1
  • Problem
  • Updated 1 month ago
  • (Edited)
Greetings!

  MindManager 20.1.231 (64-bit) 24.01.2020

  I just noticed that Task Info of some topics does not show the correct duration in workdays:



  Another example:




  How do we fix this or force MM to recalculate all the dates for all the topics in a map?

Thank you.


Photo of Andrey Kazak

Andrey Kazak

  • 247 Posts
  • 21 Reply Likes

Posted 1 month ago

  • 1
Photo of Nick Duffill

Nick Duffill, Champion

  • 605 Posts
  • 248 Reply Likes
The duration value for rolled-up task info (marked with the padlock) is the number of workdays between the earliest start date and the latest end date across the descendants. It is not the sum of their task durations. Where there is only one descendant, the rollup duration will match the task duration.
Photo of Andrey Kazak

Andrey Kazak

  • 247 Posts
  • 21 Reply Likes
What is the name of the Gantt chart tool for removing slack time?
Photo of Andrey Kazak

Andrey Kazak

  • 247 Posts
  • 21 Reply Likes
I found Remove Slack button in Gannt Pro of MindManager Enterprise.
Do you know if I can call this function from a macro?
Photo of Nick Duffill

Nick Duffill, Champion

  • 605 Posts
  • 248 Reply Likes
The commands in the user interface are not exposed in the API so it would not be easy to find them and call them. Even if you did, this command only pops up the Gantt dialogue anyway.
You could remove all the slack in a map with a macro by finding all the task topics, sorting them into date order then setting the task start date to today in ascending date order. MindManager will automatically reschedule the task to the earliest possible date that meets constraints. However this would also affect tasks that have no dependencies, so some extra coding would be needed.
Photo of Andrey Kazak

Andrey Kazak

  • 247 Posts
  • 21 Reply Likes
I already found this trick: setting year to 2000 forces MindManager to find the earliest possible date that meets constraints.

Actually I want to touch only the topics having inbound F2S=- relationships.
I looked at the https://www.mindmanager.com/en/pages/developers/api/20/MindManager~Relationship.html but could not find relationship type property (for example, F2S).
Therefore perhaps this would be non-trivial to implement...
(Edited)
Photo of Nick Duffill

Nick Duffill, Champion

  • 605 Posts
  • 248 Reply Likes
For historical reasons the coding of dependency types is complicated. It is a custom attribute of the relationship rather than a direct property. If you email me at nick at harportconsulting dot com I can send you the technical details but it is not very simple.