Hi Anurag,
There's I think two ways you can go about this. The first is the most straight forward, but may be slower because of more queries (although presentation to the user is faster). The second is a bit more fiddling in the screen, but you can suffice with a single query.
- Use a table with as input the tasks Aggregate. In one of the columns, put a Block that has the TaskId as input. Inside the block put an Aggregate that retrieves the goals based on the TaskId, and display them.
- Use a single Aggregate that retrieves all the tasks with their goals, sorted on tasks. Use Ifs to only show the task name once (and surpress it in the 2nd etc. row), and use CSS to hide borders as to make the rows in that column to appear as a single cell (for a single task).