How to write a JSONata query to get sum of values related to another distinct attribute?
I have been having trouble finding an appropriate solution for this as I have little experience working with JSON arrays and querying json with JSONata Here is a simplified version of my JSON array: [ { "job":1, "issue":"red", "issuesInJob":50 },…