Class: Dude::ProjectManagement::Jira::FetchCurrentTasks

Inherits:
Object
  • Object
show all
Defined in:
lib/dude/project_management/jira/fetch_current_tasks.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ FetchCurrentTasks

Returns a new instance of FetchCurrentTasks.



9
10
11
# File 'lib/dude/project_management/jira/fetch_current_tasks.rb', line 9

def initialize(client)
  @client = client
end

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/dude/project_management/jira/fetch_current_tasks.rb', line 13

def call
  board = client.Board.find(Dude::SETTINGS.dig(:jira, :board_id))

  all_issues = board_type(board)

  all_issues.map { |issue| create_issue(issue) }
end