Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

effort to duration is incorrect #278

Open
athonyparent opened this issue Feb 14, 2022 · 1 comment
Open

effort to duration is incorrect #278

athonyparent opened this issue Feb 14, 2022 · 1 comment

Comments

@athonyparent
Copy link

athonyparent commented Feb 14, 2022

Using the following simple tjp file, When I run taskjuggler, the gantt chart shows several errors related to translating "effort" to "duration"

  • 6.3 days duration for task 'workarea1' with an effort of 5 days.
    • Maybe ok, as it seems to span a weekend even though it should be Monday through Friday, giving 5 days duration.
  • 0.3 days duration for several tasks which have a 1 day effort.
    • I can understand MORE time, but not LESS!
  • If I change one of the efforts to 2d, it shows up as 1.3 days duration (To be consistent you would expect 0.6 days...)
  • If I change the effort for MYPROJ92 to 1.1 days, all the following tasks magically now have a duration of 1d as expected
  • If I change the loadunit in the report to "hours" instead of "days" more mayhem ensues.
    • Instead of 0.3 days, I see 8 hours. (OK, that makes sense, 1d=8hours.)
    • When I change the task mentioned above to 1.1 days, now 1d = 24 hours

None of this makes any sense as there is no reliable way to tell what taskjuggler is doing to calculate duration. It also makes it useless for project planning if I say something should take a day, and taskjuggler says it will be done in 0.3 days. (Or maybe it's 1 day, I don't know.) I have used taskjuggler a few years ago and do not remember seeing this issue. Maybe with a bigger project something kicks it over into calculating duration more appropriately, or I just adjusted times to say what I wanted... Either way, this is just wrong.

project MyprojPhase1 "Myproj" "Phase 1" 2022-02-01-08:00 +1y {
  # Set the default time zone for the project. If not specified, UTC
  # is used.
  timezone "America/New_York"
  # Hide the clock time. Only show the date.
  timeformat "%Y-%m-%d"
  # Use US format for numbers
  numberformat "-" "" "," "." 1
  # Use US financial format for currency values. Don't show cents.
  currencyformat "(" ")" "," "." 0
  # Pick a day during the project that will be reported as 'today' in
  # the project reports. If not specified, the current day will be
  # used, but this will likely be outside of the project range, so it
  # can't be seen in the reports.
#  now 2021-02-15-13:00
  # The date hat is used to show additional line on a Gannt chart
  # and can be specified by the user.
#  markdate 2021-02-15-03:00
  # The default currency for all money values is the Euro.
  currency "USD"

  # We want to compare the baseline scenario to the actual dates
  scenario plan "Plan" {
    scenario actual "Actual"
  }
  extend resource {
    text Phone "Phone"
  }
}

resource developers "Development" {
  resource dev2 "Dev2"{
    email "email2@noop.com"
    limits { dailymax 8h}
  }
  resource dev3  "Dev3" {
    email "dev3l@synopsys.com"
    limits { dailymax 8h}
  }
}

taskreport "GanttChartPlan" {
  headline "Project Gantt Chart"
  columns bsi,name, duration, start, end, resources, complete, chart {width 1500}
  timeformat "%a %Y-%m-%d"
  loadunit days
  hideresource 1
  formats html
  sorttasks tree
  scenarios plan
}
taskreport "GanttChartActual" {
  headline "Project Gantt Chart"
  columns bsi, name, start, end, duration, resources, complete, chart {width 800}
  timeformat "%a %Y-%m-%d"
  loadunit days
  selfcontained yes
  hideresource 1
  formats html
  sorttasks tree
  scenarios actual
}
task rel02 "0.2 Development" {
  task workarea1 "Work area updates for 0.2" {
    task MYPROJ88 "some task" {
      allocate dev2
      effort 5d
    }
  }
  task cleanup1 "Code tweaks for interaction with GUI" {
    task MYPROJ92 "some taskeee" {
      allocate dev3
      effort 1d
    }
    task MYPROJ107 "some taskeeee" {
      allocate dev3
      effort 1d
      depends !MYPROJ92
    }
    task MYPROJ104 "some task" {
      allocate dev3
      effort 1d
      depends !MYPROJ107
    }
    task MYPROJ102 "some taskeee" {
      allocate dev3
      effort 1d
      depends !MYPROJ104
      actual:complete 80
    }
    task MYPROJ108 "some taskeeee" {
      allocate dev3
      effort 1d
      depends !MYPROJ102
    }
    task MYPROJ109 "some task" {
      allocate dev3
      effort 1d
      depends !MYPROJ108
    }
    task MYPROJ103 "some task" {
      allocate dev3
      effort 1d
      depends !MYPROJ109
    }
    task MYPROJ105 "some task" {
      allocate dev3
      effort 1d
    }
  }
}

TJBadDuration
TJOKDuration

@lucamini
Copy link

I encountered the same issue. Please take a look to this picure, task Firmware: it has an effort of 19.4 days but in the gantt it start/end in the same day!

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants