I forgot to add that these tasks are across different process instances of the same process definition...
I believe there is no API function.
But you can easily do this with an HQL query.
I was implementing it using HQL only(but it adds so many extra lines of code!) ; many thanks for the confirmation, holly77 :)