I may have already posted something like this, or perhaps someone else has, but whatever - someone asked for it, so I thought I'd make sure it was posted here.
Call this macro, or better yet, just copy the green Group below, and execute it. The results are returned in these variables:
Any chance you could add the info from the standard KM "Get Info" (⌘I) to your report?
EDIT: "⌘I" is the Hot Key Trigger I assigned to a Macro, which simply shows menu KM App > Window > Macro Inspector.
Well, almost all of the JXA code needs to be there, in order to get the group name. So it really doesn't matter if it gets all those fields or not. You can either ignore the other variables, or just delete the lines at the end that store the unwanted results in the KM variables.