Open jstanden opened 5 years ago
This would allow everyone to create some kind of dynamic "inheritance" of criteria.
For example:
Saved Search | Criteria |
---|---|
@project_manager | all worker which are some kind of project manager |
@project_manager_europe | @project_manager AND its project ist located in europe |
@supporter | all worker from group 1st_level_support and 2nd_level_support |
@supporter_en | @supporter AND workers language is EN |
@user_basic | all workers that hit a specific criteria |
@user_advanced | @user_basic AND some more criteria |
The goal initially was to handle different roles / permissions based on a complex set of criteria. This is already possible, but as soon as you add an saved search inside a saved search, it will be expand. So currently, if you change a included saved search, you'll have to modify all parent saved searches manually.
I think that would be incredibly useful and make it much easier to maintain dynamic roles.
I'll experiment with this.
It likely just requires a way to prevent the saved search tag from expanding in a saved search query until it's actually running; and preventing circular references.
A client would like to be able to use worker-based saved searches like a placeholder within ticket saved searches.