Add task status on story

pull/6827/head
friflaj 15 years ago
parent 1ea9a8f614
commit 9fda0da820
  1. 13
      app/models/story.rb

@ -61,4 +61,17 @@ class Story < Issue
return story_points.to_s
end
def task_status
closed = 0
open = 0
self.descendants.each {|task|
if task.closed?
closed += 1
else
open += 1
end
}
return {:open => open, :closed => closed}
end
end

Loading…
Cancel
Save