在"TFS描述"字段中嵌入文本 [英] Embedding Text in TFS Description Field

查看:84
本文介绍了在"TFS描述"字段中嵌入文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于描述"字段的TFS问题.当前,"TFS描述"字段是一个空字段,用户可以在其中添加任何信息.可以嵌入某种类型的文本吗?

I have a TFS Question regarding the Description field. Currently the TFS Description field is an empty field in which users add any info. Is it possible to embed some type of text?

示例:创建新的错误时,"TFS描述"字段为空.相反,我想在描述字段中填充以下内容.

Example: When creating a new bug, TFS Description field is empty. Instead I want to have the following populated within the description field.

  1. 配置和日志
  2. 版本和环境
  3. 复制步骤
  4. 设备/环境
  5. 附有屏幕截图或相关文件(证书等)

我认为这与使用默认值标记相似,只是在创建错误时会这样做.

I assume it would be similar to using the Default Value tags only that it would be done when the bug is created.

谢谢

推荐答案

我想出了解决方案.

我当前的描述字段是纯文本字段,因此我将该字段设置为默认值X.我在创建Bug工作项时的初始过渡中执行了此操作.

My current description field is a plain text field so I set the field with a default value of X. I did this in the initial transition to when creating the Bug Work Item.

然后,我导出工作项XML并搜索:

Then, I exported the Work Item XML and searching for:

<FIELD refname="System.Description">

在它下面,我找到了Default Value标签,它看起来像这样:

Right under it, I found the Default Value tag, it looked like this:

<DEFAULT from="value" value="1. Configuration and Logs 2. Version and Environment" />

我继续添加xml换行标记&#xD;来分隔行.新的默认值看起来像这样

I proceeded to add the xml breakline tag &#xD; to separate the lines. The new Default would look like this

<DEFAULT from="value" value="1. Configuration and Logs &#xD; 2. AW Version and Environment" />

最后,我导入了修改后的Bug.xml并对其进行了测试.现在,每当我打开一个新的错误时,这些行将在说明"字段中可见

Finally, I imported the modified Bug.xml and tested it. Now whenever I open a new bug, these lines will be visible in the Description field

这篇关于在"TFS描述"字段中嵌入文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆