jstanden / cerb

Cerb is a fully customizable, web-based platform for enterprise communication and process automation. Create high volume shared inboxes. Integrate with any API-based service and automate nearly any repetitive digital workflow using the specialized KATA language and browser-based coding tools. Production: https://github.com/cerb/cerb-release/
https://cerb.ai/
Other
81 stars 38 forks source link

[Saved Searches] Refer to other searches within a saved search #966

Open jstanden opened 5 years ago

jstanden commented 5 years ago

A client would like to be able to use worker-based saved searches like a placeholder within ticket saved searches.

beatbesmer commented 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.

jstanden commented 5 years ago

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.