     .then (json) ->
       send msg,
         text: "Ranked <#{jiraUrl}/browse/#{ticket}|#{ticket}> to `#{direction}`"
-        attachments: [ buildJiraAttachment json, no ]
+        attachments: [ buildJiraAttachment json, no ] if includeAttachment
     .catch (error) ->
       send msg, "An error has occured: #{error}"
 
   handleAssignRequest = (msg, includeAttachment=yes) ->
-    msg.finish()
+    msg.finish?()
     [ __, ticket, person ] = msg.match
     person = if person is "me" then msg.message.user.name else person
     ticket = ticket.toUpperCase()

      results = f.search name
      result = if results? and results.length >=1 then results[0] else undefined
      return result

  report = (project, type, msg) ->
    reporter = null

    .then (json) ->
      issue.key = json.key
      send msg,
        text: TICKET_CREATED_TEXT
        attachments: [ buildJiraAttachment issue, no ]

      if toState
