View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013794 | mantisbt | plug-ins | public | 2012-01-24 11:02 | 2012-08-29 09:49 |
Reporter | istvanb | Assigned To | atrol | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | won't fix | ||
Product Version | 1.2.8 | ||||
Summary | 0013794: 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. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
I have attached a screenshot and a small bugfix (one semicolon was missing) |
|
Nice plugin. Some comments:
|
|
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. |
|
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; 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. |
|
I need to make this plugin to work with hours instead of days, can You help me with this issue? |
|
Suggest to look here: It is already standard functionality (Hours) and more options have been added. |
|
Wow! I was not aware of this, but really cool stuff man! |
|