Method: PTT::UI#started

Defined in:
lib/ptt/ui.rb

#startedObject



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/ptt/ui.rb', line 37

def started
  # find by a single user
  if @params[0]
    stories = @project.stories(filter: "owner:#{@params[0]} state:started")
    PTT::TasksTable.new(stories).print @global_config
  else
    # otherwise show them all
    title("Stories started for #{project_to_s}")
    stories = @project.stories(filter:'state:started')
    PTT::TasksTable.new(stories).print @global_config
  end
end