Project

General

Profile

Actions

Patch #3461

closed

Manage permission on issue assigment

Added by Yohann Monnier almost 15 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Permissions and roles
Target version:
-
Start date:
2009-06-08
Due date:
% Done:

0%

Estimated time:

Description

We had some problems with customers who assigned issue directly to one of our developper, so we searched how to manage right on it.

As this permission wasn't implemented, we did it. (patch linked)

With this patch you manage this permission for roles, so you can control who can assign a tack and who can not on a project, according to the role of the user.

If have no right to assign an issue, you see the name of the user assigned to the task.

I would like to see this feature add the main trunk, as i know it could be usefull for many users.

Yohann Monnier - Internethic


Files


Related issues

Related to Redmine - Patch #7444: Patch for improved issue edit permissionsClosedBrian Lindahl2011-01-25

Actions
Actions #1

Updated by Jens Goldhammer almost 15 years ago

+1!

Actions #2

Updated by Adam Piotr Żochowski almost 15 years ago

This ties quite well with #482 .

So anyone can create a ticket, but ticket assigned to is auto routed to right person.
This person approves ticket, and forwards to proper developer, and stops ticket dead.

Kind regards

Actions #3

Updated by James Holle almost 15 years ago

+1 Thanks. This is great!

Is it possible to have a someone without permission still be able to assign an issue to themselves though? This way we our developers could create an issue and assign it to either themselves or no one. Although managers would still retain the right to assign to anyone eligible. I'd hate make a manager assign every little task, but at the same time a developer couldn't step on any toes :)

I'm guessing this would only require a modification to the last line in your change in the rhtmls. Such as:

<p><%= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), :required => true %></p>
<% if User.current.allowed_to?(:manage_issue_assignment, @project) -%>
<p><%= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
<% else %>
<p><%= f.select :assigned_to_id, (@issue.author.collect {|m| [m.name, m.id]}), :include_blank => true %></p>
<% end %>

But, this doesn't work. No ruby skills here ;)
Your thoughts?

Actions #4

Updated by Stanislav German-Evtushenko almost 15 years ago

Hi Yohann,

Could you put screenshots here, please?

Actions #5

Updated by Chris Grieger almost 15 years ago

+1

Wasn't able to get this patch running. Is it enough to put the

  permission_manage_issue_assignment: Assign an issue 
into the Libs/redmine.rb?

I can't see the permission in my role-permission edit form to add it to a role.

Actions #6

Updated by Yohann Monnier almost 15 years ago

Hello Chris,

You have to apply the entire patch (4-5 files, it depends if you use french translation or not)

Yohann

Actions #7

Updated by Yohann Monnier almost 15 years ago

Chris Grieger wrote:

+1

Wasn't able to get this patch running. Is it enough to put the [...] into the Libs/redmine.rb?

I can't see the permission in my role-permission edit form to add it to a role.

Be carefull, you did put the right "patch" in the right patch.

Actions #8

Updated by Yohann Monnier almost 15 years ago

Sorry for the multiple post, I can not edit my comments.

Be carefull, you did NOT put the right "patch" in the right file.

Actions #9

Updated by Harwant Pannu almost 14 years ago

We tried to use this patch on our 0.9.3 install of Redmine and it did not work for us. We got some kind of "unknown variables" errors at install time.

Anyone knows what is going on? Any ideas, tips or updated patch for the newer releases of Redmine?

Thanks for your attention.

Actions #10

Updated by Chad S over 13 years ago

I have a fix for this guys that works with 1.0.x (which i assume would work with 0.9.x, but i have not tested it.)

Click the patch above to view (this link below is the same):
http://www.redmine.org/attachments/2156/redmine-0.8-issue-assignment-right.patch

Follow it as you normally would with one exception...
The edit to the first file should not be done to this file:
app/views/issues/_form.rhtml
but to this file instead:
app/views/issues/_attributes.rhtml

I have this working after upgrading from 0.8.x to 1.0.x. Reply here if you need help getting this working.

Actions #11

Updated by Brian Heasley over 13 years ago

+1

Thanks for the fix, Chad S. It worked fine on 1.0.2.stable. One additional comment, the "lang/en.yml" file now seems to be in "config/locales/".

Actions #12

Updated by Arne-Kolja Bachstein over 13 years ago

I've created a new patch to handle this. Hope the patch file is created correctly, it's my first diff ;) Just look inside to make sure everything's fine.

I'm implementing permissions for view_issue_assignment and manage_issue_assignment and do some view conditionals based on this in show.rhtml, _attributes.rhtml.

As I included the possibility to hide assignments completely (permission view_issue_assignment) I had to do some nasty stuff in app/models/query.rb. If anyone knows how to improve it, please share. I just didn't find an other way yet.

Patch is created against Redmine 1.0.4 vanilla.

Actions #14

Updated by Brian Heasley about 13 years ago

Any word on using this with v1.1.0?

Actions #15

Updated by Terence Mill about 13 years ago

+1

This so useful ! A real enteprise feature!

Actions #16

Updated by Brian Lindahl about 13 years ago

similar improvements found in patch #7444

Actions #17

Updated by Ivo Leite almost 13 years ago

+1

Actions #18

Updated by Terence Mill almost 13 years ago

However this should be extended to a "complete" solution for this kind of feature
See #8050

Actions #19

Updated by Jean-Philippe Lang almost 12 years ago

  • Status changed from New to Closed

Superseded by #3521. Each issue field can now be controled by role/tracker/status.

Actions

Also available in: Atom PDF