force user to select severity

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
chiahua
Posts: 2
Joined: 02 Apr 2018, 10:21

force user to select severity

Post 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!!!!!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: force user to select severity

Post by atrol »

You can write a custom function (read the Admin Guide for details) or a plugin (read the Developer Guide) to validate input.
Please use Search before posting and read the Manual
chiahua
Posts: 2
Joined: 02 Apr 2018, 10:21

Re: force user to select severity

Post 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?
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: force user to select severity

Post 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.
Please use Search before posting and read the Manual
c_schmitz
Posts: 2
Joined: 26 Sep 2018, 10:44

Re: force user to select severity

Post 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
Post Reply