Page 1 of 1

force user to select severity

Posted: 02 Apr 2018, 10:27
by chiahua
Hi everyone,

I wanna let "Severity" to have the same function like "Category".

What I mean is by default "Severity" is "(Select)", that means users will get alert message when submit with the blank column for "Severity".

I found a previous discussion is to create a new severity named "YourDefaultNewSeverity", but it doesn't mandatory.

Hope to get any solution soon.

Thank you so much!!!!!

Re: force user to select severity

Posted: 04 Apr 2018, 19:55
by atrol
You can write a custom function (read the Admin Guide for details) or a plugin (read the Developer Guide) to validate input.

Re: force user to select severity

Posted: 10 Apr 2018, 07:55
by chiahua
Hi Atrol,

Thanks for your reply.

You are right by using the custom function.

But is there no way to modify original Severity column to make it work?

Re: force user to select severity

Posted: 10 Apr 2018, 09:51
by atrol
You can use the mentioned methods (custom function or plugin) to modify the original severity column.
These are good methods, as they will work also after upgrading Mantis to a newer version.

The other (easier) option would be to change source of Mantis, but I don't recommend it.

Re: force user to select severity

Posted: 02 Mar 2021, 13:03
by c_schmitz
Hello,

@chiahua : Did you code such a plugin and would be willing to share?
Did someone else implement this and would be willing to share this?

Thank you and best regards
Carsten