     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
+      fetch "#{jiraUrl}/rest/api/2/user/search?username=#{slackUser.email_address}"
       .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:

    [ __, ticket, toState ] = msg.match
    ticket = ticket.toUpperCase()

    fetch("#{jiraUrl}/rest/api/2/issue/#{ticket}?expand=transitions.fields", headers: headers)
    .then (res) ->
      checkStatus res
    .then (res) ->
      parseJSON res
    .then (json) ->
      type = _(transitions).find (type) -> type.name is toState
      transition = json.transitions.find (state) -> state.to.name.toLowerCase() is type.jira.toLowerCase()
      if transition
        msg.send "<@#{msg.message.user.id}> Transitioning `#{ticket}` to `#{transition.to.name}`"
        fetch "#{jiraUrl}/rest/api/2/issue/#{ticket}/transitions",
          headers: headers
          method: "POST"
          body: JSON.stringify
            transition:

    [ __, ticket, comment ] = msg.match

    fetch "#{jiraUrl}/rest/api/2/issue/#{ticket}/comment",
      method: "POST"
      body: JSON.stringify
        body:"""
