Method: Twenty::Project#open_task_count
- Defined in:
- lib/twenty/server/model/project.rb
#open_task_count ⇒ Integer
Returns the number of open tasks a project has
37 38 39 40 41 42 |
# File 'lib/twenty/server/model/project.rb', line 37 def open_task_count @open_task_count ||= Twenty::Task .where(project_id: id) .where(Sequel.lit("status IN (0,1,2)")) .count end |