"This Entity" filter on relation fields

Hello,

Not sure if it was already requested.

I’m currently linking entities to create dependencies on Gantt and it would be interesting if it was possible to add a filter on “This Entity”.

On my use case, I’m creating dependencies between Tasks. And when searching for a task to add on my Blocked by field, it shows all my tasks. It would be great if on relation fields it was possible to add a This option so it takes the current linked Project. That’s for a one-to-many relation (one Project, many Tasks). In case of a many-to-many relation (many Projects, many Tasks), then there should be a These option so the list of tasks only shows tasks of related projects.

If Task A is linked to Project A and B, then the list should only show the tasks that are linked to Project A and B.

Do you mean this?
Or do you mean “If Task A is linked to Project A and B, then the list should only show the tasks that are linked to Project A or B” ?

(post deleted by author)

Let’s imagine the following situation :

  • Project A

    • Task A
    • Task B
  • Project B

    • Task B
    • Task C

If I want to link a task on my Task A, the list will show Task A and B.

If I want to link a task on my Task B, the list will show Task A, B and C.

Yep, so I think you mean ‘or’ rather than ‘and’ ?

Yes, I think you’re right.