 
   #============================================================================
   #ADD COMMENT
-  taskService.addComment = (task, textString, commentType, success, failure) ->
-    TaskComment.create { project_id: task.project().project_id, task_definition_id: task.task_definition_id, comment: textString, type: commentType},
+  taskService.addComment = (task, textString, commentType, replyID, success, failure) ->
+    TaskComment.create { project_id: task.project().project_id, task_definition_id: task.task_definition_id, comment: textString, type: commentType, reply_to: replyID},
       (response) ->
         unless task.comments?
           task.comments = []

    comments[0].should_show_timestamp = true

    for i in [0...comments.length]
      initials = comments[i].author.name.split(" ")
      comments[i].initials = ("#{initials[0][0]}#{initials[1][0]}").toUpperCase()
      comments[i].author_is_me = comments[i].author.id == currentUser.profile.id

      time_exceeded: ['ready_to_mark', 'not_started', 'working_on_it', 'need_help']
      fail:  ['ready_to_mark', 'not_started', 'working_on_it', 'need_help']

  taskService.currentReplyID = { id: null }

  # This function gets the status CSS class for the indicated status
  taskService.statusClass = (status) -> _.trim(_.kebabCase(status))

