Insight is a Jira plugin that allows the tracking of things that are not "issues". Link to Insight API
This will flatten an Insight Object.
This will flatten a linked/child Insight Object in another.
This will flatten a collection of Insight Objects as returned from the api.