It would be great to filter by the references not just the relationships since tasks that are created from a doc are linked by "reference" not relationship. This could also be solved by just linked the task back to the doc it was created from by relationship and not reference