Related fields in forms and form logic from datasources and related fields

I can’t choose from related fields in forms. Also I can’t make advanced logic based on an related field.
Example: I want to start a new task. The task has an category. So I want to choose who in this category is available, without looking for it manually. I should just can choose the right people.