we are currently heavily using the domain-based assignment feature in Zammad, since we have a lot of contact with Universities. Many of them use subdomains for their faculties and departments, and there the domain-based assignment does not apply.
So I want to enhance this feature to allow subdomain matching on a per-organization basis. There are two ways this could be implemented, and I wanted to ask the devs which one they prefer.
1. Add a new boolean
I could add a new field called include subdomains with a yes and no toggle. That field would be active and evaluated based on whether domain-based assignment is enabled or not.
2. Change the current boolean to an int with enum
This would implicate a change of the current field from a booleanto an int:
0 = no = no
1 = yes = yes
2 = yes_include_subdomains = yes, include subdomains
Before I start working on this, what would be your preferred way of implementing this?
There’s a feature request somewhere in this Community or on Github regarding Domain Based assignment. It doesn’t cover subdomains, but rather looks at “several different domains”.
I personally believe both would be good and important in todays time. However, I cannot decide.