开发者

tfs work items can not be modified after user is renamed in Active Directory

TFS stores information about who created or who activated a work item and for some reason checks its validity whenever the work item is modified.

When a user is deleted from active directory or renamed in active directory, all work items even slightly has connection with the user can not be modified. Usually the error message is something like ... TF20015: The field 'Activated By' contains the value 'blah blah blah' that is not in the list of supported values.

I've found a blogpost which recommends tweaking the TFS database, which is something not supported nor 开发者_如何学Crecommended by Microsoft.

What can be done to resolve this?

Thanks...

e-mre


Caveat: I'm not sure that this will work, and right now I'm not in a position to test it. However, I've had success with this approach on some other fields.

If you use the TFS Power Tools to edit the work item type definition, you should be able to change the Activated By field's rules and add an ALLOWEXISTINGVALUE rule to it. This might allow you to save those records when the AD name changes.

We've used this with some success with the Assigned To field.


I've seen this behaviour. It occurs if someone who activated a work item is removed from Active Directory (leaves the company) or if they change their name (gets married).

It's simple to fix, you just need to change the work item status from Active to Pending then back to Active this will change the "Activated By" field to the person chaging the status and the problem will be resolved.

Are you using TFS 2008? I seem to remember that this issue is fixed in 2010 (but I might have dreamt that)

If you have a lot of work items this blog might have a solution that helps automate the fix.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜