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_assignment_todo(issuable, author)
    if issuable.assignee && issuable.assignee != author
      attributes = attributes_for_todo(issuable.project, issuable, author, Todo::ASSIGNED)
      create_todos(issuable.assignee, attributes)
    end
  end
def create_assignment_todo ( issuable , author ) if issuable . assignee && issuable . assignee != author attributes = attributes_for_todo ( issuable . project , issuable , author , Todo :: ASSIGNED ) create_todos ( issuable . assignee , attributes ) end 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
issuable
author