Skip to content

Conversation

@waldenraines
Copy link

No description provided.


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.

@waldenraines
Copy link
Author

Anyone have an example of mapping? I have several names that are different between redmine and kanboard.

@ares
Copy link
Owner

ares commented Jan 4, 2018

I think there's a task for this already - https://github.com/ares/kansync/blob/master/tasks/150-set_assignee_according_to_redmine.rb perhaps it could be somehow reused in this. It's a bit more complicated as it checks all linked redmine issues, but it contains the mapping based on profile configuration.

@waldenraines
Copy link
Author

I think there's a task for this already - https://github.com/ares/kansync/blob/master/tasks/150-set_assignee_according_to_redmine.rb perhaps it could be somehow reused in this. It's a bit more complicated as it checks all linked redmine issues, but it contains the mapping based on profile configuration.

I could look into reusing that but you're okay with the approach of assigning at creation time if the redmine is assigned?

@ares
Copy link
Owner

ares commented Jan 4, 2018

absolutely, just want to avoid having it on two places

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants