Skip to main content

Hey all, 

I’m utilizing the /incidents API to fetch all incidents for an internal report. From what I can tell the since/until date parameter is filtering based on the created_at date. Does anyone know if there is a way to filter based on the updated_at field? 
I’d like to incrementally load a warehouse with the incidents from this API, but you can’t really do that if you can only filter by the created_at date. 

 

Hi ​@jlarrimore, the only date field PagerDuty currently allows to filter by is created_at. You can also sort by the resolved_at field.

If you need to incrementally load only updated incidents, the best workaround is to fetch all incidents created since your last sync, then filter them by updated_at in your own process. If you want to catch updates to older incidents, you’ll need to periodically re-fetch a larger window and check the updated_at field locally.

I've submitted your request to ProdDev to see if this is something we can implement, as the updated_at filter is a common request in the community.


Okay, thanks ​@xamici. I will take that approach until this updated_at filter is implemented. 


Reply