TFS 2010 工作项 -- 如何将纯文本字段默认为当前用户?
我已将字段“报告者”添加到 TFS 2010 中的“CMMI 模板错误” 工作项。我想将此字段默认为当前用户(创建错误的用户) 。这是一个纯文本字段,因为在某些情况下,我希望该字段是来自该领域并提出错误报告的人员的姓名。从现场拨打电话的人不是 TFS 用户,因此不在预定义的用户列表中。如果我将“Reported By”定义为像已定义的“System.AssignedTo”字段一样作为 FieldControl,我将无法输入任意文本(字段错误报告者的名称)。我尝试将 ReportedBy 字段默认设置为 CurrentUser,但收到字段类型不匹配的导入错误。有没有办法让当前用户默认以纯文本形式输入到字段中?
I have added a field Reported By to the CMMI Template Bug work item in TFS 2010. I would like to default this field to the current user (The one creating the bug). This is a plain text field because in some cases I want this field to be the name of someone from the field who called in with a bug report. The person calling from the field will not be a TFS user and thus not on the pre-defined user list. If I define Reported By like the already defined System.AssignedTo field as a FieldControl I can't enter arbitrary text (The name of the field bug reporter). I've tried setting the ReportedBy field default to CurrentUser and I get an import error that the field types do not match. Is there a way to have the current user entered by default into the field as plain text?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果字段定义为
您可以使用副本自定义工作流程中的转换
只要字段引用中未指定有效用户,您就可以根据需要编辑字段,但它将作为当前用户启动。
If the field is defined as
You can then customize the transition in the workflow by using a copy
As long as valid user isn't specified in the field reference you can edit the field as necessary but it will start as the current user.