Use regex for attribute validation

Title: regex attribute type

Usecase environment:

  • average concurrent agent count: 5+
  • average tickets a day: 100+

What is the idea or pain point:

currently there is no good way of handling the validation of a custom attribute. By adding a new data_type to the object manager this problem could be solved. For instance i need to add two new attributse to the ticket that helps distinguish the time spent on the ticket on site vs the time spent in remote. currently the only way to achive this is to add two new string type attributes, unfortunaly without proper validation the agent can write anything he desires.

Expectation (not solution):

it would be nice to be able to add an atribute that uses regex for validation. this could really open the possibilities to adapt zammad to every need. for instance on my example the regex for the new atributes would be as follow:
remote_time: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
onsite_time: ^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$
this way if the agent dosen’t input the correct format he will receive an error.


Please use the feature request template.

Should this not be a feature request but technical assistance / development question, please adjust the category accordingly.

I’ve updated my request.

1 Like