Automation- Dependencies

Hi there!
I have a task that has couple of tasks that they are all in its dependancies column.
I want to do an automation that when all its dependancies are DONE the task that dependent on all of them will also be done. I couldn’t find the right automation for that. can it be done?
Thanks for any help!