Page 1 of 1

Due date by Severity

Posted: 30 Dec 2018, 09:26
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: 30 Dec 2018, 14:24
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: 02 Jan 2019, 11:08
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: 03 Jan 2019, 07:10
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: 03 Jan 2019, 10:22
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.

Re: Due date by Severity

Posted: 18 Feb 2021, 20:49
by mtikuman
cas wrote: 02 Jan 2019, 11:08 I do have a plugin available for exactly that pupose, see:
https://www.nuy.info/mantis2/view.php?id=7
I have tried to download the plugin without success. Can someone please link it as a reply? Thanks in advance.

Re: Due date by Severity

Posted: 19 Feb 2021, 08:36
by cas
Here is the latest version for you :mrgreen:

Re: Due date by Severity

Posted: 21 Feb 2021, 06:38
by mtikuman
cas wrote: 19 Feb 2021, 08:36 Here is the latest version for you :mrgreen:
Thank you very much!