         return 
 
       cb comments.comments.map((comment) -> return comment.body)
+
+  comment = (msg, issue, text, cb) ->
+    post msg, "issue/#{issue}/comment", { body: "comment from #{msg.message.user.name} (via Hubot):\n\n" + text }, (comment) ->
+      console.log comment
+      cb "Ok, commented on #{issue}: #{text}"
 
   info = (msg, issue, cb) ->
     get msg, "issue/#{issue}", (issues) ->


    openIssues msg, msg.match[2], (text) ->
      msg.reply text
  
  robot.respond /([^\w\-]|^)(\w+-[0-9]+)(?=[^\w]|$)/ig, (msg) ->
    if msg.message.user.id is robot.name

 # Description:
#   Messing with the JIRA REST API
#
# Dependencies:
