           key: res.body.key
           url: url.resolve(config.host, "browse/#{res.body.key}")
 
+  @receiveEvent: (config, event, callback) ->
+    if event?.trigger?.type == "reopened"
+      if event?.error?.createdIssue?.id
+        @ensureIssueOpen(config, event.error.createdIssue.id, callback)
+        @addCommentToIssue(config, event.error.createdIssue.id, jiraBody(event))
+    else
+      @openIssue(config, event, callback)
+
 module.exports = Jira

    [View full stacktrace|#{event.error.url}]
    """

  @receiveEvent: (config, event, callback) ->
    return if event?.trigger?.type == "reopened"
    # Build the ticket payload
    payload =
      fields:

    config.host += "/" unless /\/$/.test(config.host)

    # Send the request
    @jiraRequest(@request.post(@issuesUrl(config)), config)
      .send(payload)
      .on "error", (err) ->
        callback(err)
