Attaching text in the TFS description field

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

Example. When creating a new error, the TFS description field is empty. Instead, I want the following to be filled in the description field.

  • Configuration and Logs
  • Version and environment
  • Reproduction Stages
  • Device / Environment
  • Attached screenshots or related files (certificates, etc.)

I assume that it will be similar to using default labels only so that this is done when creating the error.

thank

+3
source share
2 answers

I understood the solution.

- , X. .

XML- :

<FIELD refname="System.Description">

Default Value, :

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

breakline xml &#xD; . :

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

, Bug.xml . , , ""

+2

TFS (, 2015), .

TFS 2015, , 2013 , .

, .

  • WIT- - html-.

  • XML , , , .

    & = &amp;
    < = &lt;
    > = &gt;
    " = &quot;
    ' = &apos;
    
  • : " ", . WIT - HTML, HTML, XML.

    <b>Reproduction Steps</b>
    

    : bug.xml:

    &lt;b&gt; Reproduction Steps &lt;/b&gt;
    

, , BIT WIT, bug.xml .

> > > WIT

bug.xml

<FIELD name="Repro Steps" refname="Microsoft.VSTS.TCM.ReproSteps" type="HTML"/>

, , , , .

      <FIELD name="Repro Steps" refname="Microsoft.VSTS.TCM.ReproSteps" type="HTML">
    <DEFAULT from="value" value="All the embedded html/xml text will go here" />
  </FIELD>

OP .

<FIELD name="Repro Steps" refname="Microsoft.VSTS.TCM.ReproSteps" type="HTML">
<DEFAULT from="value" value="&lt;b&gt; Configuration and Logs &lt;/b&gt; &lt;br/&gt;
        &lt;b&gt; Reproduction Steps&lt;/b&gt; &lt;br/&gt;
        &lt;b&gt; Device/Environment&lt;/b&gt; &lt;br/&gt;          
        &lt;b&gt; Screenshots or related files (certificates, etc.) are attached&lt;/b&gt; &lt;br/&gt;" />
 </FIELD>

bug.xml, .

> > > WIT

+2

All Articles