0
私はasana gemを使用しており、すべてのプロジェクトのすべてのタスクのcreated_atの日付をすべて取得しようとしています。私は名前とIDを表示できますが、他のフィールドは表示できません。たとえば、画面に印刷すると、created_atは空白を返します。すべてのタスクがcreated_atの日付を持つように見えるでしょう。AsanaのタスクがCreated_At Dateを表示していませんか?
コードは以下の通りです:
client.workspaces.find_all.each do |workspace|
puts "\t* #{workspace.name} - projects:"
client.projects.find_by_workspace(workspace: workspace.id, per_page: 20).each do |projects|
puts "\t\t*- #{projects.name} - tasks"
projects.tasks.find_all.each do |task|
puts "\t\t\t*- #{task.name}"
puts "\t\t\t*- #{task.id}"
puts "\t\t\t*- #{task.assignee}"
puts "\t\t\t*- #{task.due_on}"
puts "\t\t\t*- #{task.created_at}"
puts "\t\t\t*- #{task.completed_at}"
end
end
end