Work Item - Is it possible to change value for create date field
-
Monday, January 16, 2012 1:41 PM
Hi,
We migrating all bugs from an old system to TFS 2010. Is it possible to change the createDate and ActivationDate?
When I try to change the field:
workItem.CreatedDate = date;
I get the following error:
Property or indexer 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItem.CreatedDate' cannot be assigned to -- it is read only
Any ideas?
thanks,
All Replies
-
Tuesday, January 17, 2012 8:47 PM
Hello,
From you experience in wrokitem, you cannot change the created date filed in TFS, even using API's it's read only field.
Regards Ayman Zaza MCTS- Proposed As Answer by 2re Wednesday, January 25, 2012 9:04 AM
-
Wednesday, January 18, 2012 6:51 AMModerator
Hello Billy_mk,
Ayman is correct that the WorkItem.CreatedDate property is read-only, you can’t modify the value of it. Please see: http://technet.microsoft.com/it-it/query/bb164799
Thanks,
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, January 25, 2012 9:08 AM
Hi,
I was able to change the creation date by updating the DB directly.
thanks.
- Marked As Answer by Billy_mk Wednesday, January 25, 2012 9:08 AM
-
Wednesday, April 04, 2012 12:48 PMCan you share your query used to update your DB?

