Forum

[SOLVED] Start date...
 
Notifications
Retirer tout

[SOLVED] Start date of Parents

15 Posts
3 Utilisateurs
0 Reactions
12.2 K Vu
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 
[#3096]

Hello,

I have setup a project template with:

  1. Parent tasks being defined as Phases for activity type and the planning mode is fixed duration
  2. Tasks set to a planning mode of fixed duration
  3. The planned durations of tasks are set
  4. All tasks have been linked to predecessor/successor

In the Planning view the gantt properly shows:

  1. the tasks start/end dates
  2. the parents calculated end date is shown correctly
  3. the calculated duration of the parent is correct

However, the start date of the parent is not changing to match the start date of the child tasks. It seems to be taking on the planned start date which is not correct and I do not want to set a validated start date in the template otherwise they will cause issues when creating projects using this as a template. How should parent tasks be defined to properly adjust the start & end dates to reflect the child tasks?

Regards,
Ron


 
Posté : 25/02/2016 5:09 am
(@richard-pare)
Posts: 165
Estimable Member
 

When real work is entries, the planned start date is changed to the real work start date.


 
Posté : 25/02/2016 5:14 pm
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

Perhaps this should be an enhancement. Currently when viewing several projects at a time and how the phases overlap the start date is not valid and the duration looks longer than it should be.

That means trying to get a quick overview of upcoming projects is not possible until actual work starts. That makes planning of future projects for proposals very difficult.

Perhaps our use case is unique?


 
Posté : 25/02/2016 6:11 pm
(@richard-pare)
Posts: 165
Estimable Member
 

Normally, date adjustment is done during update synthesis.
The update synthesis is done when a task assignment or planning element are changed (save).
I explained before than planned start date will be changed to real start date when real work is entries in child task.


 
Posté : 25/02/2016 7:03 pm
(@babynus)
Posts: 14952
Membre Admin
 

in completion to richard explanation, just a question : did you run planning calculation ?


 
Posté : 26/02/2016 12:54 am
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

Yes I tried with and without auto planning. I also tried editing the validated duration and saving and it still did not move the start date.


 
Posté : 26/02/2016 1:17 am
(@babynus)
Posts: 14952
Membre Admin
 

Cannot reproduce.

Could you please reproduce on Demo ?
And / or post print screen.


 
Posté : 26/02/2016 10:56 am
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

Hello,

I have created a project called TSD on the Demo site. Here are the steps I took:

  1. Create a Project of type Template with only required fields filled in
  2. Create a Milestone to be used for project start date
  3. Created first activity as Phase with planning as fixed duration and a duration of 10 days
  4. Created four tasks with a parent being the Phase, planning as fixed duration and entered a number of days for the duration
  5. Used Planning with automatic run plan checked to link the Activities and Milestone
  6. Set the start date of the Milestone

As you can see, the start date of the Phase activity (and the project) did not move, only the end date. Also the validated duration did not change which is a requirement for a planning mode of fixed duration.


 
Posté : 26/02/2016 6:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
Thanks for this use case.
Issue recorded as Ticket #1989


 
Posté : 27/02/2016 7:00 pm
(@babynus)
Posts: 14952
Membre Admin
 

Fixed
Fix will be deployed in V5.3.0

Fix is replace in /model/PlannedWork.php lines 356 to 357 from

            $plan->plannedStartDate=$startPlan;
            $endPlan=addWorkDaysToDate($startPlan,$plan->validatedDuration);

to

            if ($plan->elementary) {
              $plan->plannedStartDate=$startPlan;
              $endPlan=addWorkDaysToDate($startPlan,$plan->validatedDuration);
            }

 
Posté : 29/02/2016 4:31 pm
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

Thank you for the quick reply as well as how to fix in our current version. I will try out the fix later today.

Will there be an update to the 5.2.x branch?


 
Posté : 29/02/2016 6:36 pm
(@babynus)
Posts: 14952
Membre Admin
 

Will there be an update to the 5.2.x branch?

No.
Patch on 5.2 will now occur only for major or blocking issues.


 
Posté : 29/02/2016 6:42 pm
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

Hello,

We are currently running version 5.2.4 and the line numbers do not line up. I believe the change required belongs in:

if ($profile=="FDUR") {
   if (! $plan->realStartDate) {
     $plan->plannedStartDate=$startPlan;
     $endPlan=addWorkDaysToDate($startPlan,$plan->validatedDuration);
   } else {

Which should change to:

if ($profile=="FDUR") {
   if (! $plan->realStartDate) {
      if ($plan->elementary) {
         $plan->plannedStartDate=$startPlan;
         $endPlan=addWorkDaysToDate($startPlan,$plan->validatedDuration);
      }
   } else {

Is that the correct location?


 
Posté : 29/02/2016 7:05 pm
(@babynus)
Posts: 14952
Membre Admin
 

Yes, it's exacltly here.


 
Posté : 29/02/2016 7:23 pm
(@rmeske)
Posts: 28
Trusted Member
Début du sujet
 

We have made the change and done some testing. The start date now updates properly. What we are noticing now is that the duration is properly reflected in the Planned duration, but is not updated in the Validated duration. Should I open this as a new topic as I had already marked this one complete.


 
Posté : 29/02/2016 7:45 pm
Share:
Retour en haut