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 reject_users_without_access(users, project, target)
    if target.is_a?(Note) && target.for_issue?
      target = target.noteable
    end
    if target.is_a?(Issue)
      select_users(users, :read_issue, target)
    else
      select_users(users, :read_project, project)
    end
  end
def reject_users_without_access ( users , project , target ) if target . is_a? ( Note ) && target . for_issue? target = target . noteable end if target . is_a? ( Issue ) select_users ( users , :read_issue , target ) else select_users ( users , :read_project , project ) 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
users
project
target