Page 1 of 1

Due date by Severity

Posted: Dec 30, 2018 4:26 am
by nolankam
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?

Re: Due date by Severity

Posted: Dec 30, 2018 9:24 am
by atrol
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

Re: Due date by Severity

Posted: Jan 02, 2019 6:08 am
by cas
I do have a plugin available for exactly that pupose, see:
https://www.nuy.info/mantis2/view.php?id=7

Re: Due date by Severity

Posted: Jan 03, 2019 2:10 am
by nolankam
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"?

Re: Due date by Severity

Posted: Jan 03, 2019 5:22 am
by cas
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.