Open Bug 287328 Opened 20 years ago Updated 16 years ago

Ability to add custom type-constrained plain-text fields to a bug

Categories

(Bugzilla :: Bugzilla-General, enhancement)

2.19.2
enhancement
Not set
normal

Tracking

()

People

(Reporter: mkanat, Unassigned)

References

Details

The idea here is that people ought to be able to have fields that *look* like they are free text, but are constrained to be certain types when you enter data in them. This bug is just about constraining the types on entry, not about having Bugzilla treat the fields in any special fashion. The special treatment can come in another bug.
No longer depends on: 287325
Probably the best way to achieve this would be a validation_regex field. Then we could even allow admins to put their own regexes in for their own custom types.
Severity: normal → enhancement
Depends on: 287325
Summary: Ability to add type-constrained fields to a bug → Ability to add custom type-constrained plain-text fields to a bug
If possible, we should try to make the regexes compatible across both Perl and JavaScript. Then we could do client-side validation and let users know immediately if the value they entered is invalid for the field in question.
(In reply to comment #2) > If possible, we should try to make the regexes compatible across both Perl and > JavaScript. Then we could do client-side validation and let users know > immediately if the value they entered is invalid for the field in question. Oh, good idea. :-) Have any references on the differences between JS regex and Perl regex?
Not really, but JavaScript's syntax is borrowed from Perl, so they should be largely compatible. According to this page, JavaScript supports a subset of the modifiers supported by Perl: http://www.regular-expressions.info/javascript.html (Modifiers are just the things you tack onto the end of the expression, not the special characters you can use within the expression itself.)
*** Bug 263218 has been marked as a duplicate of this bug. ***
I am new to bugzilla and hence would require some help from you all here. Could anyone let me know if this enhancement has been completed. If yes, how to get the current updates / patches for bugzilla 2.20? In such a case will all the new customization [custom field] etc get merged with bugzilla 2.20 release? The customizations mentioned here would really come handy for us too. Please check BUG #344086 about the same. Looking forward to your replies on the same. Thanks,
*** Bug 38520 has been marked as a duplicate of this bug. ***
Whiteboard: [roadmap: 3.2]
Blocks: 95065
No longer blocks: 95065
Hello, I would like to add some other type for a custom field. Currently it can be "free text" or "drop down". And adding regexp would be a greater improvement. I think some other types would be nice, specific to bugzilla. For instance, a "user" field. This would be a field where you can only enter user names (like generic CC or "Assigned To" fields). In my case this is related to BUG396026 where I want to be able to a specific field. Then if the field has a check that you enter a valid user, it is better!
Whiteboard: [roadmap: 3.2]
You need to log in before you can comment on or make changes to this bug.