在 TFS 2010 中是否有与记者等效的东西(或者更改“创建者”字段的方法)

发布于 2024-09-16 19:38:00 字数 371 浏览 1 评论 0原文

通过 SDK 将工作项添加到 TFS 2010 时,将使用用于向 TFS 服务器进行身份验证的相同身份来创建事件。

在提供缺陷跟踪器/工作项支持的其他应用程序中,API 通常允许您设置 Reporter/ReportedBy/CreatedBy 字段,因此您可以使其看起来就像您的服务正在代表“已创建问题”创建问题的用户一样,而不是说您设置的通用“服务帐户”以允许第 3 方应用程序访问 TFS/缺陷跟踪器。

通过 TFS SDK 创建工作项时,您似乎无法设置 CreatedBy 字段(您收到 TF26194 - 值“创建者”无法更改”错误),并且我看不到任何标配的 Reporter 字段 是否可以将“创建者”设置为其他用户,或模拟其他用户(不知道其密码等

)以创建新工作项?

When adding a work item to TFS 2010 via the SDK, the incidents are created using the same identity that was used to authenticate to the TFS server.

In other applications providing defect tracker/work item support the API normally allows you to set a Reporter/ReportedBy/CreatedBy field, so you can make it appear as if the user your service is creating the issue on behalf of "has created the issue", rather then say a generic "service account" you have setup to allow a 3rd party application access to TFS/defect tracker.

It appears you can not set the CreatedBy field when creating a work item via the TFS SDK (you get a TF26194 - The value "Created By" cannot be changed" error) and I can't see any Reporter field that comes as standard with the common TFS templates.

Is it possible to set the "Created By" to another user, or impersonate another user (without knowing their password etc.) for the purposes of creating new work items?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

玻璃人 2024-09-23 19:38:00

CreatedBy 字段对于输入数据的人员的责任非常重要。在我的组织中,我们添加了一个额外的用户字段,供代表另一个用户创建工作项时使用。

您可以使用流程模板编辑器(团队的一部分Foundation Server Power Tools)可轻松将字段添加到您的工作项。

The CreatedBy field is important in terms of accountability regarding who enters data. In my organization, we added an additional user field for use when the work item is created on behalf of another user.

You can use the Process Template Editor (part of the Team Foundation Server Power Tools) to easily add fields to your work items.

一身仙ぐ女味 2024-09-23 19:38:00

有趣的问题。我们正在寻找 TFS 2008 的答案(似乎没有),并找到了 TFS 2010 的答案。我很想知道这是否适合您:

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

Interesting question. We were looking for an answer for TFS 2008 (there doesn't seem to be one), and found this one for TFS 2010. I'm 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文