id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
10313	schedule=alap: ticket finish date must default to milestone but not to today (if dependencies don't give a date)	falkb	ChrisNelson	{{{\r\n#!python\r\n        def _schedule_task_alap(t):\r\n\r\n        ...\r\n\r\n            # If we haven't scheduled this yet, do it now.\r\n            if t.get('calc_finish') == None:\r\n                # If there is a finish set, use it\r\n                if self.pm.isSet(t, 'finish'):\r\n                    # Don't adjust for work week; use the explicit date.\r\n                    finish = self.pm.parseFinish(t)\r\n                    finish += timedelta(hours=options['hoursPerDay'])\r\n                    finish = [finish, True]\r\n                # Otherwise, compute finish from dependencies.\r\n                else:\r\n                    finish = _earliest_successor(t, _ancestor_finish(t))\r\n                    \r\n==> WRONG!          # If dependencies don't give a date, default to\r\n==> WRONG!          # today at close of business\r\n                    if finish == None:\r\n                        # Start at midnight today\r\n==> ask milestone       finish = datetime.today().replace(hour=0, \r\n                                                          minute=0, \r\n                                                          second=0, \r\n                                                          microsecond=0)\r\n}}}\r\n\r\nPlease, could you tell me, how I change {{{ finish = datetime.today()... }}} into something like {{{ finish = milestone.datetime()... }}}?\r\n\r\nAt present, all tickets without dependencies and without set fields.start or fields.finish are scheduled to start in the past which is nonsense. ALAP means to me such tickets need at least to start with a finish on milestone date.	defect	closed	high	TracJsGanttPlugin	critical	fixed			0.12
