Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to get all the incident for a component

murtaza.bhatia June 15, 2021

I want to get all/list of incident for a component on statusPage is there any API anyone can help me with please

1 answer

1 accepted

0 votes
Answer accepted
Nick Coates
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2021

Hi Murtaza,

Welcome to the Atlassian Community!

There isn't an API endpoint to get a list of incidents for a specific component. You would need to use the 'Get a list of incidents' endpoint and then filter based on the component array (using the component_id):

https://developer.statuspage.io/#operation/getPagesPageIdIncidents

Thanks,
Nick

murtaza.bhatia June 15, 2021

Hi Nick,

 

Thank for the response,

I did have a look on the list of incidents API, but I wanted to fetch all the incidents for a component

List of incidents API gives me the historical incidents for all the components on the page  which is bit uneasy to filter all those

Did you mean to get the response from List of incident APi and then filter based in the component array json?

 

Thanks,

Murtaza

Nick Coates
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 15, 2021

@murtaza.bhatia Yes, I think you would need to get a list of all incidents via the API endpoint I shared and then filter it based on the component_id.

I can absolutely see a need though for an endpoint where you can easily pull the incidents for a component. I'll get an enhancement logged with the team.

Like David Bjorgen likes this
murtaza.bhatia June 16, 2021

Thank you @Nick Coates for logging this issue, it would be great to have this and would save a lot time

David Bjorgen June 13, 2024

@Nick Coates I would love to see the following endpoints:

  • a list of ALL incidents for a specific component
  • a list of UNRESOLVED incidents for a specific component
  • a list of maintenance items for a specific component (both upcoming and active)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events