Help!How to create custom work item type field

I want to create new field for my custom form. But refname of field type is unique

<FIELD refname="System.Title" name="Remark" type="String" >
<!-- Field Help Text and Rules go here -->
</FIELD>

<FIELD refname="System.Title" name="Summary" type="String" >
<!-- Field Help Text and Rules go here -->
</FIELD>




Answer this question

Help!How to create custom work item type field

  • PlanoPete

    Thank you for your reply.

    I don't know how to define 'YourCompany.Remark' in TFS



  • Autox

    So you basically would have to set the value of the 'refname' Xml attribute to the unique field-reference-name. For example:

    <FIELD refname="MyCompany.MyProject.Remark" name="Remark" type="String" >
    <!-- Field Help Text and Rules go here -->
    </FIELD>

    Notice that the refname cannot be 'System.Title' since that is the refname of a core field that all work item types will always have out of the box.

    If you find this answer helpful, please mark it likewise. If not, I'll try my best to help you reach your solution.

    Thanks,
    karthik



  • CTARP2

    Hey there,

    The Reference name of a field is its only unique identifier. Therefore, existing reference names cannot be reused for a new field. 'System.Title' is a reference name for the 'Title' Core field - this means that all work item types will always have the 'System.Title' field and therefore no other new field may have the same name.

    Reference names must have a '.' (period) in them. So something like 'YourCompany.Remark' or 'YourCompany.Summary' should work fine.

    Thanks,
    Karthik



  • Help!How to create custom work item type field