Hi @yearahull,
I have never done this so far but if I had to do it I would do something like this , fetch the tasks and all of the related updates and

then from there have it all in a aggregated json

which gives you a json string looking something like
[{"ID":"IDED_TESTED","name":"SOME NAME","updates":[]},{"ID":"IDED_TESTED","name":"SOME_NAME","updates":[]},{"ID":"SOME_ID","name":"SOME_NAME","updates":[]}]
Hopefully this helps.
Best regards,
Ivan