The TaskResults individually represent each run. Whether or not other results are available depends on how your task is configured. Your screenshot is cutting it off, but the right side of the page you’re on should contain a “Previous Result Action” setting. If it’s set to “Delete,” then the previous results are going to be unavailable. If it’s set to Rename Old or Rename New, then the other results will be available under names like “Perform Maintenance - 2.”
The statistics themselves, however, are kept on the TaskDefinitions, not the TaskResults. Sadly, I don’t believe that those are exposed through any SCIM and/or REST APIs right now.
Thanks Bernie. I had figured out the previous results (delete / rename) thing, which lets me access old results if set to one of the rename options. The real key, though, is that the stats are on Task Definitions, not exposed in the API. That seemed to be the conclusion I reached, so thanks for confirming. I don’t suppose you know when (if?) Task Definitions will be exposed?
I’m not aware of any plans to expose them at this time, but given enough demand, I don’t see why we wouldn’t expose them. I’m honestly a little surprised that they’re not exposed already, given that we even expose ObjectConfigs. You’ll likely get a more accurate response regarding future plans from product management than from me.
You can always submit an idea through the ideas portal, too.