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
