Programatically forcing field values for a TFS WorkItem
You are allowed to set the Created Date
and Created By
fields if you are a service account and you turn on the bypass rules feature.
You can choose to bypass the rules when you create an instance of WorkItemStore
class by using this flag: WorkItemStoreFlags.BypassRules
.
Please note that you are allowed to set these fields only for the first revision of the work items.