       switch action.name
         when "rank"
           Jira.Rank.forTicketKeyByDirection key, "up", envelope
-          msg.attachments.push text: "<@#{user.id}|#{user.name}> ranked this ticket to the top"
+          msg.attachments.push
+            text: "<@#{user.id}|#{user.name}> ranked this ticket to the top"
           resolve()
         when "watch"
           Jira.Create.fromKey(key)
           .then (ticket) =>
             watchers = Utils.lookupChatUsersWithJira ticket.watchers
             if _(watchers).findWhere(id: user.id)
-              msg.attachments.push text: "<@#{user.id}|#{user.name}> has stopped watching this ticket"
+              msg.attachments.push
+                text: "<@#{user.id}|#{user.name}> has stopped watching this ticket"
               Jira.Watch.forTicketKeyRemovePerson key, null, envelope
             else
-              msg.attachments.push text: "<@#{user.id}|#{user.name}> is now watching this ticket"
+              msg.attachments.push
+                text: "<@#{user.id}|#{user.name}> is now watching this ticket"
               Jira.Watch.forTicketKeyForPerson key, user.name, envelope
             resolve()
         when "assign"

      attachments = []
      for ja in payload.attachments
        attachments.push ja
        attachments.push @ticketButtonsAttachment ja if ja.type is "JiraTicketAttachment"
      payload.attachments = attachments
    rc = @robot.adapter.customMessage payload


            assignee = Utils.lookupChatUserWithJira ticket.fields.assignee
            if assignee and assignee.id is user.id
              Jira.Assign.forTicketKeyToUnassigned key, envelope
              msg.attachments.push
                text: "<@#{user.id}|#{user.name}> has unassigned themself"
            else
              Jira.Assign.forTicketKeyToPerson key, user.name, envelope
              msg.attachments.push
                text: "<@#{user.id}|#{user.name}> is now assigned to this ticket"
            resolve()
        when "devready", "inprogress", "done"
          result = Utils.fuzzyFind action.value, Config.maps.transitions, ['jira']
          if result
            msg.attachments.push @buttonAttachmentsForState action.name,
              key: key
              text: "<@#{user.id}|#{user.name}> transitioned this ticket to #{result.jira}"
            Jira.Transition.forTicketKeyToState key, result.name, envelope
          resolve()

