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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to get all the incident for a component

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 Community Leader Jun 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

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 Community Leader Jun 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.

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

1,667 views 4 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you