Page 1 of 1

Change assigned to when user is disabled

Posted: 07 Mar 2012, 08:26
by Reinder
We have an extensive database of users and issues which is fine. Only thin g is that people leaving are disabled...still fine. But the problem arises when issues are assigned to these disabled users and then fall of the grid.

Is it somehow possible to either empty the assigned to field when users are disabled or change it back to the reporter automatically (manually this will be a drag....).

Kr,
Reinder

Re: Change assigned to when user is disabled

Posted: 07 Mar 2012, 08:44
by istvanb
I am not aware of any automation which does that for you.

What you can do is to list all the issues assigned to the disabled user, hit the select all checkbox, and select "move" in the pull down menu. Then you can move all the issues in one go, which is not too bad. (I guess you have to have manager or admin access to do this by default)

Re: Change assigned to when user is disabled

Posted: 07 Mar 2012, 12:28
by Reinder
I cannot select issues that are assigned to a disabled user shince these are not in the field to select anymore.....So how can I get an overview of issues assigned to users that are disabled.

Re: Change assigned to when user is disabled

Posted: 07 Mar 2012, 12:40
by istvanb
I am not able to reproduce your problem. I had no issues at all to select the issues with the checkboxes.

Try this:
1, select a certain project
2, filter the issues for the disabled user
3, select all the issues (again, I dont understand why would you have a problem with that)
4, click assign

You have to have at least one more developer assigned to that ceratain project.
This should be done on a project basis except if the developer you want to assign the issues is a developer in ALL the projects where the disabled user was a developer.

let me know if if works.

Re: Change assigned to when user is disabled

Posted: 09 Mar 2012, 14:18
by cas
I created some scripts that handled that, should be somewhere here onr in the bugtracker :D

Re: Change assigned to when user is disabled

Posted: 12 Mar 2012, 12:32
by Reinder
istvanb wrote:I am not able to reproduce your problem. I had no issues at all to select the issues with the checkboxes.

Try this:
1, select a certain project
2, filter the issues for the disabled user
3, select all the issues (again, I dont understand why would you have a problem with that)
4, click assign

You have to have at least one more developer assigned to that ceratain project.
This should be done on a project basis except if the developer you want to assign the issues is a developer in ALL the projects where the disabled user was a developer.

let me know if if works.
Step 2 is a problem, because i cannot filter on disabled users. The disabled users are simply not in the "assigned to" dropdown and need to be enabled to be able to see them....

Re: Change assigned to when user is disabled

Posted: 12 Mar 2012, 12:36
by istvanb
Oh I see... sorry about that. I have a testbox only, with very limited amount of users, so I saw the disabled user as well, but never tried to filter. Yeah... its a legit problem. Try the scripts written by Cas, most likely they will work.

Worst case scenario, enable the user until you assign his/her issues to somebody else, and disable it again. Not the best solution I know, but thats why I would approach if I would need to solve this urgently.

Re: Change assigned to when user is disabled

Posted: 12 Mar 2012, 14:53
by Reinder
@cas any idea where they are before I spend time searching?

Re: Change assigned to when user is disabled

Posted: 14 Mar 2012, 20:34
by cas

Re: Change assigned to when user is disabled

Posted: 15 Mar 2012, 09:37
by Reinder
@cas Nice plugin. However, I now have converted my whole history as well, instead of only the assigned to user. I would like to know who entered issues in the past and what happened in the meantime (in other words, to have the complete history available)....is that possible as well?

Re: Change assigned to when user is disabled

Posted: 16 Mar 2012, 15:20
by cas
Have to disappoint you, that is not an option at this moment in time.
Would be relative easy to add a switch to convert only active issues.
However the old user would need to stay in the system

Re: Change assigned to when user is disabled

Posted: 19 Mar 2012, 11:08
by Reinder
Thats not a problem since we want that history of users anyway...

Re: Change assigned to when user is disabled

Posted: 21 Mar 2012, 11:19
by Reinder
@cas Are you planning of adding this relatively easy update anytime soon? Need to know, so I can act (or not) on it.

Re: Change assigned to when user is disabled

Posted: 26 Mar 2012, 15:21
by cas
Will see if I can handle this in the coming weeks. :mrgreen:

Re: Change assigned to when user is disabled

Posted: 27 Mar 2012, 07:41
by cas
New version is available, check it out here:
http://www.mantisbt.org/bugs/view.php?id=7260