Before removing a user, how to find out whether that user owns any work items?
2 answers
Hi,
You could try exploring operation advisor / participant on project area save. The details in the below forum discussion could be of help:
Comments
https://jazz.net/forum/answer_link/99639/ is also interesting.
I would suggest to rather create a client tool that
- Receives a list of users ID's and a project area.
- Checks (expression) if there are open work items for any of the users and provides a warning
- Removes the user if there is no work item
See
1 vote
How often will you be removing users?
This is not something that is done often so the simplest way would be to just create a query to show all unresolved items for a user, then use the bulk edit capability to reassign them.
You could even set up a query to show unresolved items assigned to archived users and put this on the dashboard so that you can quickly see any that need attention - clicking on this widget would take you to the query and allow you to bulk edit to reassign as above.
This would be the lowest effort approach - I feel trying to automate this is overcooking it a bit.
Comments
well, this is a work around way to do it, but i am not sure my custom will accept it...
maybe like
Ralph said that ,need to develop a client tool is a best way~
Thanks~
This is not a work around, this is how most customers are likely doing it.
Note that just from removing a user from a project area does not remove them from the repository (which you can not do that easily) and thus the work item is not broken when this happens. You could even query for this user as owner. It is a process driven decision what to do with such work items. I would set the user to unassigned.
The automation I proposed is basically only that - automation. And automation is costly and needs maintenance. So it is basically a judgement call if it is worth it.