app/services/todo_service.rb
# When create an issue we should:
#
#  * create a todo for assignee if issue is assigned
#  * create a todo for each mentioned user on issue
#
When create an issue we should:
create a todo for assignee if issue is assigned
create a todo for each mentioned user on issue
When create an issue we should : create a todo for assignee if issue is assigned create a todo for each mentioned user on issue
def create_mention_todos(project, target, author, note = nil)
    mentioned_users = filter_mentioned_users(project, note || target, author)
    attributes = attributes_for_todo(project, target, author, Todo::MENTIONED, note)
    create_todos(mentioned_users, attributes)
  end
def create_mention_todos ( project , target , author , note = nil ) mentioned_users = filter_mentioned_users ( project , note || target , author ) attributes = attributes_for_todo ( project , target , author , Todo :: MENTIONED , note ) create_todos ( mentioned_users , attributes ) end
When create an issue we should:
 create a todo for assignee if issue is assigned
 create a todo for each mentioned user on issue
When create an issue we should : create a todo for assignee if issue is assigned create a todo for each mentioned user on issue
project
target
author
note