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)
Tracking
()
NEW
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.
Reporter | ||
Comment 1•20 years ago
|
||
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.
Reporter | ||
Updated•20 years ago
|
Severity: normal → enhancement
Reporter | ||
Updated•20 years ago
|
Summary: Ability to add type-constrained fields to a bug → Ability to add custom type-constrained plain-text fields to a bug
Comment 2•20 years ago
|
||
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.
Reporter | ||
Comment 3•20 years ago
|
||
(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?
Comment 4•20 years ago
|
||
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.)
Reporter | ||
Comment 5•19 years ago
|
||
*** 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,
Reporter | ||
Updated•18 years ago
|
Whiteboard: [roadmap: 3.2]
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!
Updated•16 years ago
|
Whiteboard: [roadmap: 3.2]
You need to log in
before you can comment on or make changes to this bug.
Description
•