Change assigned to when user is disabled
Moderators: Developer, Contributor
Change assigned to when user is disabled
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
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
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)
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
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
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.
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
I created some scripts that handled that, should be somewhere here onr in the bugtracker
Re: Change assigned to when user is disabled
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 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.
Re: Change assigned to when user is disabled
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.
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
@cas any idea where they are before I spend time searching?
Re: Change assigned to when user is disabled
You can find things here:
http://www.mantisbt.org/bugs/view.php?id=7260
http://www.mantisbt.org/bugs/view.php?id=7260
Re: Change assigned to when user is disabled
@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
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
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
Thats not a problem since we want that history of users anyway...
Re: Change assigned to when user is disabled
@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
Will see if I can handle this in the coming weeks.
Re: Change assigned to when user is disabled
New version is available, check it out here:
http://www.mantisbt.org/bugs/view.php?id=7260
http://www.mantisbt.org/bugs/view.php?id=7260