History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRA-11841
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jeff Turner [Atlassian]
Votes: 13
Watchers: 13
Operations

If you were logged in you would be able to see more operations.
JIRA

Add "Assign to Role Member" workflow post-function

Created: 28/Dec/06 06:10 PM   Updated: 26/May/08 06:19 AM
Component/s: Roles
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Reference

Participants: Anton Mazkovoi [Atlassian], Bill Schneider, David Packard, Fredrik Cronholm, Jeff Turner [Atlassian], Niels Bertram, Nikolay Gorbunov, Pascal Lindelauf, Paul Heal and Stanislav Laufik
Since last comment: 19 weeks, 5 days ago
Support reference count: 3
Labels:


 Description  « Hide
JIRA projects can now have roles like "QA Lead". We should add a workflow post-function to automatically assign and issue to the person holding this role.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Bill Schneider - 15/Mar/07 10:02 AM
If multiple people can be in a project role, how would one assignee be chosen?

Pascal Lindelauf - 11/Apr/07 06:53 AM
That is a problem and requires some rework on the Assignee part, to also hold a Role as an assignee. But we would welcome this functionality very much. We currently work around this limitation, by having dummy users calles "any_analyst", "any_developer", etc. That's obviously far from ideal.

Anton Mazkovoi [Atlassian] - 11/Apr/07 08:25 PM
I am with Bill on this one.

If the role has more than one member, who do we assign the issue to?


Paul Heal - 13/Apr/07 10:13 AM
This would be a very nice feature. Currently another option seems to make a workflow for every project with specific people selected to act as the various lead roles.

With multiple people allowed within a role you'd have to do a little extra work. I see a couple of options.
1. Alter the role definition to allow a special attribute that declares the role only allows one member.
2. If the post-function finds one user in the role, than giddy-up and pick that user, otherwise if there are multiple users within the role than you either produce a form to assign from those choices, pick one of the users (either round-robin, randomly or just pick the first in the list). At a minimum just don't change the assignment and document the post-function in a fashion that let's people know its .

If there are other workarounds to get this same type of functionality in 3.8 please feel free to share them.


David Packard - 23/Apr/07 12:29 PM - edited
This might be a workaround for some people...

I have just started using two different plugins to achieve something like this.

  • Store Executer to Custom Field Plugin
  • Assign From Customfield Plugin

I then created a custom field for each of the roles and placed them on an "Assignments" tab on the primary issue screen.

My workflow is pretty involved, such that the user executing a particular transition can be safely assumed to be in a particular role. I can then immediatly assign the issue to the user who executed the transition as well, although that post function seems to have to come after "Update change history for an issue and store the issue in the database" in order to take effect. In that case I am assigning the user from the custom field I just stored his/her username to.

If the issue moves "backward" in the workflow, it is also possible for me to assign it to the appropriate person for review, based on who executed certain transitions.

I don't imagine this will be a great workaround for everyone...but so far it's improving the utility of the app for me, even if it is a hack.


Fredrik Cronholm - 04/May/07 04:16 AM
Very much appreciated. This way we could have a role responsible for qualifying the incoming issues. Today we solve that by having a dummy user called inbox.<customername> and we then poll this inbox.

Stanislav Laufik - 20/Jun/07 07:43 AM
I have created a plugin that addresses this issue. Can you pls try http://confluence.atlassian.com/display/JIRAEXT/Assign+To+Role+Member+workflow+function and let me know if it works for you?

Anton Mazkovoi [Atlassian] - 04/Oct/07 09:58 PM
Another way to approach this is to allow a selection of a Lead for each role as mentioned in JRA-13680.

Nikolay Gorbunov - 23/Nov/07 08:15 AM
Guys - any news from the field?

As a temporary workaround, we had to hardcode the assignee names into certain transitions (via "Update issue field" post-function) which's really a time bomb, and it will blast the process when a new Lead is hired.


Niels Bertram - 07/Mar/08 01:54 AM
One could consider a validator function to prompt the user if more then 1 user is acting in the dedicated role prior to going into the post. It probably only requires to remember the selected role member and pass it to the post function (e.g. use of a hidden field?). Has anyone done some work on this given there are some similar plugins making the round?