Make the Description field mandatory when creating a bug

I have a requirement to make the Description field mandatory when creating a bug.
I have been skimming the code and the database for a couple of hours now and am not finding anywhere to enforce this requirement.

Any help would be appreciated.

Thanks,
Jim
0
jfotto2
8/11/2017 3:29:37 PM
mozilla.support.bugzilla 9820 articles. 0 followers. Post Follow

2 Replies
11 Views

Similar Articles

[PageSpeed] 9

On Fri, 2017-08-11 at 08:29 -0700, jfotto2@gmail.com wrote:
> I have a requirement to make the Description field mandatory when
> creating a bug.

Why? I've seen such ticket tracking systems, often resulting in
reporters entering a whitespace or dot in the desc field, to bypass
whoever implemented technical annoyance instead of social agreement.

andre
-- 
Andre Klapper  |  ak-47@gmx.net
http://blogs.gnome.org/aklapper/
0
Andre
8/11/2017 3:54:55 PM
Guten Tag jfotto2@gmail.com,
am Freitag, 11. August 2017 um 17:29 schrieben Sie:

> I have a requirement to make the Description field mandatory when creatin=
g a bug.
> I have been skimming the code and the database for a couple of
> hours now and am not finding anywhere to enforce this requirement.

I'm pretty sure there's nothing easy to switch/activate, so you need
to customize templates to add some checking JS or create an extension
which checks your params. I think the keyword to go is VALIDATORS and
Bugzilla provides different callbacks in which you can hook into
before data is written to the database and at least throw some
exception. Have a look at Bugzilla::Bug::create and how that works.

https://www.bugzilla.org/docs/5.0/en/html/integrating/api/Bugzilla/Hook.htm=
l#bug_end_of_create_validators
https://www.bugzilla.org/docs/5.0/en/html/integrating/api/Bugzilla/Hook.htm=
l#object_before_create
https://www.bugzilla.org/docs/5.0/en/html/integrating/api/Bugzilla/Hook.htm=
l#object_end_of_create_validators
https://www.bugzilla.org/docs/5.0/en/html/integrating/api/Bugzilla/Hook.htm=
l#object_validators

The following in Bugzilla::Field might be of help as well, but an
extension is always preferred over hard coding things of course.

> use constant DEFAULT_FIELDS =3D> (

Mit freundlichen Gr=FC=DFen,

Thorsten Sch=F6ning

--=20
Thorsten Sch=F6ning       E-Mail: Thorsten.Schoening@AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/

Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04

AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Gesch=E4ftsf=FChrer: Andreas Muchow

0
windows
8/11/2017 5:14:55 PM
Reply: