プロジェクト

全般

プロフィール

Vote #62210

未完了

Assign To limited by workflow

Admin Redmine さんが約2年前に追加. 約2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Issues workflow_41
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
41
version_id:
0
issue_org_id:
212
author_id:
31
assigned_to_id:
0
comments:
11
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

First of all, thanks for this great product!

I had the problem of showing only the list of users involved in the new issue status rather than the whole list, so
I have applied this little change. Probably could have be done in a better way :)


Index: issues_controller.rb
===================================================================
--- issues_controller.rb        (revision 359)
+++ issues_controller.rb        (working copy)
@@ -105,7 +105,8 @@
         flash[:notice] = l(:notice_locking_conflict)
       end
     end    
-    @assignable_to = @project.members.find(:all, :include => :user).collect{ |m| m.user }
+    # @assignable_to = @project.members.find(:all, :include => :user).collect{ |m| m.user }
+    @assignable_to = Workflow.find(:all, :conditions => ["old_status_id = ?", @new_status]).collect {|w| w.role}.collect {|r| r.members}.flatten.collect {|m| m.user}.uniq
   end
 
   def destroy

journals

There should also be a permission settings that only a user who's
currently assigned to a task (+ some manager) can reassign the
task.

So that I, as a simple team member, cannot reassign my colleague's
ticket and reassign it to someone else.
--------------------------------------------------------------------------------
Hello Jean-Philippe,

I think something similar would be very very useful!
Now a user can come into a dead end if he assign the issue to
a user who is not involved in the new status. With a similar
solution we could avoid it.

I've tested this modification and I had to complete conditions
with tracker_id and I had to use @assignable_to in
change_status.rhtml. It is working but I'm sure it is not the
correct implementation! So I cant submit a patch at the moment.

BR,
Balazs
--------------------------------------------------------------------------------
Don't know if it is the right way to do it, but sure is the right
thing to do IMHO
--------------------------------------------------------------------------------
Is this issue fixed in newer versions? Or could someone please detail the steps to resolve it? I think it is really problematic that the workflow can come to a dead end like this.

Joseph
--------------------------------------------------------------------------------
This might depend on how you utilize Redmine. We often assign an issue to someone who cannot change state of it. They will comment the issue and assign it back or to someone else. Since anyone can change the issue, it is not stuck.

But then again, i do like even better workflow control and would not mind some control over the assigned to field (both what it contains and who may change it and to what).
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Hey there,

this seems to be solved?

You can define special rights for a user if he is the ticket owner and if he just is assigned to it.

Please correct me if i'm wrong? Otherwise this could be closed?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Under a given state of the issue - specific people should only be assigned. For example - when issue moves from development to QA and vice-versa.

However, the possible people who can be assigned should be 'role' based and not individual. Because, if workflow has many state, in each state, we need to add list of people who can be assigned. Further, the when people change, new get added, or some exit the project - you need to do the same exercise all over again.

Thus, the assignment restriction should be 'role' based only. As it is this is currently working in Redmine. Also, multiple roles per person is also permissible making it to create a finer role based assignments.

Should this issue be closed by now?
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,New,2937,Filter assignable users based on workflow
relates,New,8313,Restrict Assignee List by Role

Admin Redmine さんが約2年前に更新

  • カテゴリIssues workflow_41 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0