View Issue Details

IDProjectCategoryView StatusLast Update
0013794mantisbtplug-inspublic2012-08-29 09:49
Reporteristvanb Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionwon't fix 
Product Version1.2.8 
Summary0013794: New plugin for: Submit with expired due date
Description

I wanted to grant access to the due date field to all users, but it quickly turned out that users love to abuse this feature. One common procedure was to set an impossible due date (like resolve the issue in an hour or so). If you delete this field from the bug report page or its visible but the user leaves it empty then issue is getting late immediately.

I have created a plugin with Cas to handle the problem. It works like this: if the due date field is empty when the issue is submitted then the due date is set based on the priority of the issue. (so lets say immediate issue is submission date +1 day, urgent is submission date +3 days etc)

Now you can elimate the due date field for reporters, but they can set the due date indirectly by setting the priority field properly.

Steps To Reproduce

Install the plugin attached in the zip file. You can set how many days you want to add to the submission date based on each value of the priority list.

If you have different values in the priority field then you can add those values easily by editing one of the php files.

Additional Information

Plugin has been working successfully for a year now.

Plugin excludes the weekends.

TagsNo tags attached.
Attached Files
SetDuedate21.zip (3,672 bytes)
SetDuedate211.zip (3,672 bytes)
setduedatescreenshot.gif (59,666 bytes)   
setduedatescreenshot.gif (59,666 bytes)   

Relationships

related to 0012522 closedcommunity Set duedate automatically 

Activities

istvanb

istvanb

2012-01-26 09:34

reporter   ~0031040

I have attached a screenshot and a small bugfix (one semicolon was missing)

vboctor

vboctor

2012-01-27 02:59

manager   ~0031047

Nice plugin. Some comments:

  1. Is there a value to use for not setting a due date? For example, no due date for "none", "low" and undefined?

  2. Why do we need to edit php files for instances with custom priorities? Why don't you auto-generate this form and its storage based on the whatever priorities defined?

  3. If due date is not set, it would be useful to support setting it if the priority is updated later. Useful for the cases that have due date not set initially (e.g. undefined priority).

  4. In user preferences, we define what emails a user would like to receive based on severity. I wonder if we should key this of priority / severity / or allow admins to decide.

  5. It would be great if this plugins is hosted on our mantisbt-plugins organization on github.com.

istvanb

istvanb

2012-02-10 07:02

reporter   ~0031217

Yeah, I believe there would be more elegant ways to do the same. (I have never worked with php though, I just wanted to contribute.)

I'd love to see somebody taking over this plugin and make it better according to the suggestions you made. I dont know anything about the github, but feel free to submit this if it worth it.

istvanb

istvanb

2012-02-24 11:05

reporter   ~0031311

Last edited: 2012-02-24 11:06

I have missed something from the description:

The plugin only has effect if the due_date field is empty OR if the issue would be due immediately (due date < submission date)

If the due_date > submission date than the plugin does nothing.

This is a useful feature since what we have done is to hide the due_date field from the reporters, but we gave access to the field to the developers (hopefully they dont abuse the system)

$g_due_date_update_threshold = DEVELOPER;
$g_due_date_view_threshold = REPORTER;

So if you are a reporter than your issue will be submitted with a predefined due_date (because you dont have access to the field so it will be empty), if you are a developer than you can choose to leave the field empty then if will due based on the priority, or give a proper due_date > submission date.

Forgotten

Forgotten

2012-08-29 05:43

reporter   ~0032693

I need to make this plugin to work with hours instead of days, can You help me with this issue?

cas

cas

2012-08-29 07:49

reporter   ~0032696

Suggest to look here:
http://www.mantisbt.org/bugs/view.php?id=12522

It is already standard functionality (Hours) and more options have been added.

istvanb

istvanb

2012-08-29 08:06

reporter   ~0032697

Wow! I was not aware of this, but really cool stuff man!
I recommend to add a relationship to this topic and close it since the development continues in the original issue 0012522!