     else
       cb(pagerDutyUsers)
 
+  pagerDutyIncident = (msg, incident, cb) ->
+    pagerDutyGet msg, "/incidents/#{encodeURIComponent incident}", {}, (json) ->
+      cb(json)
+
   pagerDutyIncidents = (msg, cb) ->
     query =
       status:  "triggered,acknowledged"

            end = moment(json.override.end)
            msg.send "Rejoice, #{old_username}! #{json.override.user.name} has the pager until #{end.format()}"

  robot.respond /(pager|major)( me)? (inc|incidents|sup|problems)$/i, (msg) ->
    pagerDutyIncidents msg, (incidents) ->
      if incidents.length > 0

     #   SERVICESTATE: 'CRITICAL',
     #   HOSTSTATE: 'UP' },
    
    summary = if inc.trigger_summary_data
              # email services
              if inc.trigger_summary_data.subject
                inc.trigger_summary_data.subject
