Due date by Severity

General discussion of Mantis.

Moderators: Developer, Contributor

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

Due date by Severity

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

Re: Due date by Severity

Post 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
Please use Search before posting and read the Manual
cas
Posts: 1069
Joined: 11 Mar 2006, 16:08
Contact:

Re: Due date by Severity

Post by cas »

I do have a plugin available for exactly that pupose, see:
https://www.nuy.info/mantis2/view.php?id=7
nolankam
Posts: 9
Joined: 30 Dec 2018, 07:33

Re: Due date by Severity

Post 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"?
cas
Posts: 1069
Joined: 11 Mar 2006, 16:08
Contact:

Re: Due date by Severity

Post 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.
mtikuman
Posts: 24
Joined: 18 Nov 2020, 17:02

Re: Due date by Severity

Post 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.
cas
Posts: 1069
Joined: 11 Mar 2006, 16:08
Contact:

Re: Due date by Severity

Post by cas »

Here is the latest version for you :mrgreen:
Attachments
SetDuedate403.zip
(7.4 KiB) Downloaded 44 times
mtikuman
Posts: 24
Joined: 18 Nov 2020, 17:02

Re: Due date by Severity

Post by mtikuman »

cas wrote: 19 Feb 2021, 08:36 Here is the latest version for you :mrgreen:
Thank you very much!
Post Reply