Due date by Severity

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
nolankam
Posts: 9
Joined: Dec 30, 2018 2:33 am

Due date by Severity

Post by nolankam » Dec 30, 2018 4:26 am

Hi

I had set custom severity values using the enum strings. For a given value, I would like to set a specific date/time duration instead of having the reporter fill up the field. For example, if the defect is a severity 3, it should set the due date as today + 5 days. If it is severity 2, it should be today +3 days and if it is severity 1, it should be today + 4 hours.

How could I implement such logic?

atrol
Site Admin
Posts: 7682
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Due date by Severity

Post by atrol » Dec 30, 2018 9:24 am

You could write a custom function or a plugin for it.
For more details see https://www.mantisbt.org/docs/master/en ... ustomfuncs and
https://www.mantisbt.org/docs/master/en ... ev.plugins
Please use Search before posting and read the Manual

cas
Posts: 687
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Due date by Severity

Post by cas » Jan 02, 2019 6:08 am

I do have a plugin available for exactly that pupose, see:
https://www.nuy.info/mantis2/view.php?id=7

nolankam
Posts: 9
Joined: Dec 30, 2018 2:33 am

Re: Due date by Severity

Post by nolankam » Jan 03, 2019 2:10 am

Thanks. I saw it and downloaded the plugin. I noticed the plugin allowed the setting of due dates by category / priority fields. How can I change it for "severity"?

cas
Posts: 687
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Due date by Severity

Post by cas » Jan 03, 2019 5:22 am

That would require quite some coding, either to make it flexable or to change it in full. Curretly such change is not foreseen. In principle you should be able to achieve the same using the priority field, that is a matter of definition.

Post Reply