Condition on basic model to determine if Id of row is in grouping of aggregate model?

Jeff.  I didn’t read the full chain here.  But there may be a simpler option:   A task whose “whatID” is an opportunity is going to automatically get the AccountId of the opportunities account.  So if you look for tasks with a particular AccountId - this will include all those opportunity tasks.