help with "condition could not be met"

13 views
Skip to first unread message

Ken Geis

unread,
Oct 4, 2024, 4:25:22 AM10/4/24
to TaskJuggler Users
Hi. When I run the following file, I get the error:
  • Error: Task task1 (2024-12-02-10:00-+0000) must end before start (2024-12-02-00:00-+0000) of task deadline1. This condition could not be met.
This seems perfectly plannable. Can someone help me understand why TaskJuggler can't handle it and how I might make it work?


Thanks,

Ken

project myProject "My Project" "1.0" 2024-08-01 - 2025-03-31 {
}

resource person "Person" {
}

task task1 "task1" {
  effort 1h
  allocate person
  precedes !deadline1
  depends !task2
}
task deadline1 "deadline 1" {
  start 2024-12-02
}

task task2 "task2" {
  effort 1h
  allocate person
  precedes !deadline2
}
task deadline2 "deadline 2" {
  start 2024-12-02
}

Bob Newell

unread,
Oct 5, 2024, 1:47:05 AM10/5/24
to Ken Geis, taskjugg...@googlegroups.com
Do I understand correctly --- deadline1 and deadline2 are milestones?

So the order is do task 2 before deadline 2, in time to do task 1 before deadline 1?

Renato Pontefice

unread,
Oct 5, 2024, 4:09:05 AM10/5/24
to taskjugg...@googlegroups.com
Sorry,
I still don’t understand. I’ve transformed it in this way and it works

resource persona1 "Persona1" {}
resource persona2 "Persona2" {}
task task1 "task1" {
    
     effort 1w
     allocate persona1
#--       allocate persona2
#--   precedes !deadline1
#-- depends !task2
}
#--task deadline1 "deadline 1" {
#--  start 2024-10-01
#--  allocate persona1
#--  effort 1w
#--}

task task2 "task2" {
  depends !task1
  effort 1w   
  allocate persona1
  precedes !deadline2
}
task deadline2 "deadline 2" {
  start 2024-12-02
}

 #---------------------inizio a fare i report -----
textreport frame "" {
  textreport index "Overview" {
    formats html
    center '<[report id="overview"]>'
  }
}
  #--------------------creo il report overview-------

taskreport overview "" {
  columns bsi { title 'WBS' },
          name, start, end, effort, cost,
          revenue, chart   #-{ ${TaskTip} }
}
We can work on it to improve it, step by ste. Isn’t it?
I would like to use it and I made my simple step ahead, if someone add something to this example, would be grate.

Thank you

Renato
Reply all
Reply to author
Forward
0 new messages