API for Advanced Reporting

Hi,

I am looking for a direct API (single GET call with ID or Start Date) to fetch the Incident Details ( or Report as CSV) with the below values,

"

  • id
  • incident_number (# column in basic report)
  • description
  • service_id
  • service_name (Service column in basic report)
  • escalation_policy_id
  • escalation_policy_name
  • created_on
  • seconds_to_first_ack
  • seconds_to_resolve (Duration column in basic report)
  • auto_resolved
  • escalation_count (the number of people the incident was escalated to)
  • auto_escalation_count
  • acknowledge_count
  • assignment_count
  • acknowledged_by_user_ids
  • acknowledged_by_user_names
  • assigned_to_user_ids
  • assigned_to_user_names
  • resolved_by_user_id
  • resolved_by_user_name"

Hello Vignesh,

You can make a call on using this endpoint. This is the closest to what you require.

Please note the end point is still in Early Access and could change at anytime.

I hope that helps.

Regards,

1 Like

Thank you for your response, with this endpoint I am still missing the below info,

  • acknowledged_by_user_ids
  • acknowledged_by_user_names
  • assigned_to_user_ids
  • assigned_to_user_names
  • resolved_by_user_id
  • resolved_by_user_name"

Please suggest some end points to get all the missing details together.

Hello Vignesh,

At this time, there isn’t an endpoint with which to pull those details. You would have to rely on the Analytics Report in the Web UI for those details.

Kind regards,

You may need to make multiple iterative API calls to get the information you need. In most cases, the PagerDuty Incident ID is your key, and then you’ll use that to get all of the key information you list for the incident, then go to the analytics endpoint to get the metrics you need for that raw incident.

1 Like