       if shouldTransitionRegex.test(message)
         [ __, toState] =  message.match shouldTransitionRegex
 
-    fetch("#{jiraUrl}/rest/api/2/user/search?username=#{msg.message.user.email_address}", headers: headers)
-    .then (res) ->
-      checkStatus res
-    .then (res) ->
-      parseJSON res
+    fetch "#{jiraUrl}/rest/api/2/user/search?username=#{msg.message.user.email_address}"
     .then (user) ->
       reporter = user[0] if user and user.length is 1
       quoteRegex = /`{1,3}([^]*?)`{1,3}/

    slackUser = lookupSlackUser person

    if slackUser
      fetch("#{jiraUrl}/rest/api/2/user/search?username=#{slackUser.email_address}", headers: headers)
      .then (res) ->
        checkStatus res
      .then (res) ->
        parseJSON res
      .then (user) ->
        jiraUser = user[0] if user and user.length is 1
        if jiraUser
          fetch "#{jiraUrl}/rest/api/2/issue/#{ticket}",
            headers: headers
            method: "PUT"
            body: JSON.stringify
              fields:

      issue
    .then (issue) ->
      fetch "#{jiraUrl}/rest/api/2/issue",
        method: "POST"
        body: JSON.stringify issue
    .then (json) ->
      issue = json.key
      msg.send "<@#{msg.message.user.id}> Ticket created: #{jiraUrl}/browse/#{issue}"
