Change assigned to when user is disabled

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Change assigned to when user is disabled

Post 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
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: Change assigned to when user is disabled

Post 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)
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post 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.
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: Change assigned to when user is disabled

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Change assigned to when user is disabled

Post by cas »

I created some scripts that handled that, should be somewhere here onr in the bugtracker :D
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post 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....
istvanb
Posts: 226
Joined: 22 Aug 2010, 21:00

Re: Change assigned to when user is disabled

Post 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.
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post by Reinder »

@cas any idea where they are before I spend time searching?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Change assigned to when user is disabled

Post by cas »

Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post 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?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Change assigned to when user is disabled

Post 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
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post by Reinder »

Thats not a problem since we want that history of users anyway...
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Re: Change assigned to when user is disabled

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Change assigned to when user is disabled

Post by cas »

Will see if I can handle this in the coming weeks. :mrgreen:
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: Change assigned to when user is disabled

Post by cas »

New version is available, check it out here:
http://www.mantisbt.org/bugs/view.php?id=7260
Post Reply