Select task based on project

Hi
need at the purchase invoice at accounting dimensions when selecting project
Need to add another field that show the tasks of that project
I created a link field but how to select the tasks of that specific project
Thanks in advance.