There is a reporter equivalent in TFS 2010 (or a way to change the Created field)

When a work item is added to TFS 2010 through the SDK, incidents are created using the same identifier used to authenticate with the TFS server.

In other applications that support defect / work item tracking, the API usually allows you to set the Reporter / ReportedBy / CreatedBy field so that you can look like the user created by your service is creating a problem on behalf of "created a" problem "rather than say the general “service account” that you set up to allow a third-party application to access the TFS / defect tracker.

It looks like you cannot set the CreatedBy field when creating the work item via the TFS SDK (you get TF26194 - the value “Created” cannot be changed ”, and I don’t see the Reporter field, which appears as a standard with common TFS templates.

Is it possible to install “Created” to another user or impersonate another user (without knowing the password, etc.) to create new work items?

+3
source share
2 answers

Interest Ask. We searched for the answer for TFS 2008 (it seems not to be there), and found it for TFS 2010. I am interested to know if this works for you:

http://blogs.microsoft.co.il/blogs/shair/archive/2010/08/23/tfs-api-part-29-tfs-impersonation.aspx

+3

CreatedBy , . , .

( Team Foundation Server Power Tools), .

+5

Source: https://habr.com/ru/post/1761819/


All Articles