This is very simple but not too obvious. There are times when you want to start the hierarchy approval with a specific worker and then have it traverse up the hierarchy.
See screenshot below screenshot of some of the options. You may want to add something different to what is already available.
The way it works is, it uses certain EDTs on the table.
So, all you need to do is add a field that extends one of these EDTs. Or just subscribe to the delegate to add another EDT.
Below is some code that could give inspiration.