Problem duration from API

So I need to see how long over the past 90 days problems were remaining open before they got resolved.
I looked at the problem API and ran a quick request, but the problem duration is not the data that gets returned (which makes no sense at all, I mean I can see that as a field and it’s being calculated by Dynatrace, so why not allow me to use it in the API?).

I was wondering if anyone else has encountered this problem or if anyone has any suggestions for how to tackle this?

Hi,

This is not showed directly but you have this information in the JSON answer:

  • “startTime”: 1681969860000,
  • “endTime”: 1681972740000

Then, something as this “endTime - startTime / 1000 / 60” will return problem duration in minutes. Just an example.Best regards