Page 1 of 1

Force users to set priority

Posted: 11 Sep 2018, 23:14
by NPK
Hi,

I use Mantis 2.17 and I would like to force users to set priority. I have a lot of issues marked as 'normal' priority because it's the default choice. So, I don't know if the user has set this level of priority, or if the user don't see the field and hasn't set level.

For sure I can set a "undefinied" option in the field, but I fear to have a lot of "undefined" priorities in my issues because people don't pay attention to it.

I would like to have a default blank option as mandatory field : if the user don't clearly set priority, he can't submit his issue.

Is it possible?

Thanks!

Re: Force users to set priority

Posted: 12 Sep 2018, 06:53
by atrol
You can write a custom function
https://www.mantisbt.org/docs/master/en ... ustomfuncs
Check the one with description "Validate field settings before creating an issue"

Another option is to write a plugin that hooks event EVENT_REPORT_BUG_DATA
https://www.mantisbt.org/docs/master/en ... entref.bug