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.