Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions redmine_to_kanboard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ def load_redmine_issue
end

def create_kanboard_task
redmine_assignee = KanboardUser.find_by_name(@redmine_issue.assigned_to)
owner_id = redmine_assignee.id if redmine_assignee
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure if this is the best way to do this, my ruby is a little rusty.

@kanboard_task = KanboardTask.create('title' => task_title,
'project_id' => project_id,
'color_id' => color_id,
'description' => task_description,
'swimlane_id' => swimlane_id,
'category_id' => category_id,
'owner_id' => owner_id,
'tags' => task_tags)
@kanboard_task.create_redmine_links(@redmine_issue.url)
@kanboard_task
Expand Down