TFS调整过程Bug Tempate - Sevirty

时间:2018-02-12 06:09:34

标签: templates tfs

我正在尝试调整Bug表单“严重性”,以便在创建“新”时具有新的自定义字段值(目前它显示1到5个选项中的3个)但是我无法找到任何具体的示例如何做这个,例如https://docs.microsoft.com/en-us/vsts/work/customize/add-modify-wit未详细说明我们希望明确表明尚未明确设置严重性。

=>提示或网址好吗?

以下是“witadmin exportprocessconfig”命令的默认内容。我在TFs 2017 up3

public interface IExamService
{
    [OperationContract]
    [WebInvoke(Method = "GET",
        UriTemplate = "/ExamQs",
        RequestFormat = WebMessageFormat.Json,
        ResponseFormat = WebMessageFormat.Json,
        BodyStyle = WebMessageBodyStyle.Bare)]
    ExamClass GetExam();
}

1 个答案:

答案 0 :(得分:0)

您需要修改Bug.xml文件,才能在Severity字段规则中添加新的LISTITEM。请查看以下示例:

<FieldDefinition name=" refname="Microsoft.VSTS.Common.Severity" type="String" reportable="dimension">
  <DEFAULT from="value" value="3 - Medium" />
  <ALLOWEDVALUES expanditems="true">
    <LISTITEM value="1 - Critical" />
    <LISTITEM value="2 - High" />
    <LISTITEM value="3 - Medium" />
    <LISTITEM value="4 - Low" />
    <LISTITEM value="5 - NewCustom" />
  </ALLOWEDVALUES>
</FieldDefinition>