Skip to main content
Solved

Why are milestone dependencies not preventing out-of-order completion in my project setup?

  • 17 May 2024
  • 3 replies
  • 49 views

I am creating a project template in which i added 5 milestones. I have given the dependency for milestones as predecessors and successors. Still it allowed me to complete the milestone 3 before I completed milestone 2. How to put restriction? Do i need to write workflow rule? Then what is the use of setting dependency in workplan?

Hi Deepti

The dependencies allow the system to schedule your work items in the applicable sequence (provided that you did not manually set start and/or due dates of those milestones) as part of your planning process.

The system however does not prevent you from completing work items (or milestones in your case) before hand. The system will indicate though that you’re off track with the milestone that was due to be completed in the past.

I hope this helped answering your question.


Hi Deepti,

You could write a validation rule to prevent changes to state/percent complete on items that are not yet tagged as “executable.” The Executable field gets updated automatically when all of a work item’s predecessors are complete.


I tried to write a validation rule on work item as below:

 

Evaluation criteria -

$EntityType = task && $Executable = false && Ischanged($State) && $State =‘Completed’

 

Message: You can’t complete this item. Make sure all preseasons are completed.

 

But this validation error is popping up even when I can see a milestone/task is Executable e.g. my first milestone and tasks are executable as they don’t have a predessor.


Reply