Get title field from another content type in exposed filter
You need to create views of one content type ie Project and add a relationship to your views which should say something like this Task Content referenced from Project. Require this relationship to exclude those projects which don't have tasks. 

Now come to your filters and add title. In the setting now you will see use relationship dropdown. Select the relationship you added and you will get the required results.