implement a filter to thoroughly select the right tasks

At least at my two sites, there were no tasks selected when selecting all tasks for a collection.
After testing a lot the only solution which worked was implementing a custom filter for selection all (open)tasks for a collection.