View Issue Details

IDProjectCategoryView StatusLast Update
0015766mantisbtfeaturepublic2013-11-14 05:55
Reporterdavid_stephensen Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Summary0015766: Setting to allow Developers to change due date but not update an issue
Description

At the moment $g_update_bug_threshold overrides $g_due_date_update_threshold.

We would like to continue to prevent Developers from updating a bug, and keep $g_update_bug_threshold set to MANAGER.

However we also want to allow Developers to modify the Due Date. In some situations this would help them to set throughput targets and show likely completion dates to Reporters. For this we would set $g_due_date_update_threshold = DEVELOPER

The overide currently prevents this situation.

Our feature request is to make this possible.

TagsNo tags attached.

Relationships

related to 0005381 new more flexible group/role/profile/permission management 

Activities

atrol

atrol

2013-04-18 11:14

developer   ~0036630

This would require a new access checking system.
$g<FieldName><Action>_threshold
e.g.
$g_due_date_update_threshold
$g_due_date_view_threshold
$g_priority_update_threshold
$g_priority_view_threshold
...

Not too hard to implement, but quite hard to implement the upgrade from older versions.

david_stephensen

david_stephensen

2013-09-16 21:39

reporter   ~0038045

For other discussion see http://mantisbt.org/forums/viewtopic.php?f=3&t=21300

This is still an issue for us. It is almost the only thing that Mantis lets us down with.

How could we promote it?

atrol

atrol

2013-09-17 06:09

developer   ~0038046

It's a quite unusual workflow that developers should not be allowed to update issue details but should be able to change the due date.
Most of the time it's the other way around.

Another approach which would not require a new access checking system:
Add a button to change due date on page view.php

You don't have to change any existing code of MantisBT to get it.
You can write a custom function custom_function_override_print_bug_view_page_custom_buttons

david_stephensen

david_stephensen

2013-11-11 22:57

reporter   ~0038532

Last edited: 2013-11-11 22:57

This keeps coming up with my major client. They love Mantis and use it for many purposes, including internal ordering of services like maintenance. They want the Developer to be able to edit the Due Date to show an estimated delivery time for the service, but not to be able to change the order details.

We'd like to hire a programmer to write this function and of course we'd share it with the Mantis community (you already know my agenda for promoting the use of Mantis for business issues).

Atrol, could you give me just a little more explanation of the function you suggested, enough to be able to brief a programmer?

Also if you could recommend someone we'd be happy to hear of them. Otherwise there seem to be people in freelancer.com who can do this stuff.

atrol

atrol

2013-11-12 02:41

developer   ~0038534

Also if you could recommend someone we'd be happy to hear of them.

I recommend to write to the mantisbt-dev and/or mantisbt-help mailing list.
http://www.mantisbt.org/mailinglists.php

Maybe one of the core developers is interested.

dregad

dregad

2013-11-12 10:47

developer   ~0038535

enough to be able to brief a programmer

Not sure if you are referring to the implementation of a new access checking system or the quick solution with the custom function here.

If the former, please note that it would be a non-negligible effort to design and then write such a specification, especially if the programmer in question is not familiar with Mantis.

dregad

dregad

2013-11-12 17:26

developer   ~0038538

enough to be able to brief a programmer

Not sure if you are referring to the new access checking system or the custom function here.

If the former, it would already be a non-negligible effort to write such a specification, especially if the programmer in question is not familiar with Mantis.

david_stephensen

david_stephensen

2013-11-13 18:55

reporter   ~0038545

Degrad - If the quick custom function would work for us then that is all we need. I don't have a real understanding about how it would operate.

Thanks for the contact, Atrol. I'll try them, but I'm still not sure how to specify the function.

Could you tell me just a little more so I can get it?

I do understand the access checking idea OK.

dregad

dregad

2013-11-14 05:55

developer   ~0038549

David,

To get you started:

  • Create a custom_functions_inc.php file [1]

  • add custom function override, something like


    function custom_function_override_print_bug_view_page_custom_buttons( $p_bug_id ) {
    if( / user has appropriate access level / ) {
    echo '<td>';
    html_button( 'custom_page.php', lang_get( / display string / ), array( 'bug_id' => $p_bug_id ) );
    echo '</td>';
    }
    }

  • create custom_page.php to display interface to let users pick the due date, and update the bug id

[1] http://www.mantisbt.org/docs/master-1.2.x/en/administration_guide/admin.customize.customfuncs.html