   user = {}
 
 
-  return (url, apiKey) ->
+  return (url, apiKey, userId) ->
 
     issues:
 

      ###
       submit time entry to redmine server.
      ###
      submitTime: (userId, comment, hours, success, error) ->
        timeEntryData.time_entry.issue_id = userId
        timeEntryData.time_entry.hours = hours
        timeEntryData.time_entry.comments = comment

      ###
       Load tickets associated to user ID.
      ###
      getOnUser: (success, error) ->
        params =
          assigned_to_id: userId
        @get(success, error, params)
