CopyFrom Simple Type (Work Item Type Definition Schema)

Defines the values that specify sources of information that may be copied to a field.

<xs:simpleType name="CopyFrom">
    <xs:restriction base="xs:string">
        <xs:enumeration value="value"/>
        <xs:enumeration value="field"/>
        <xs:enumeration value="clock"/>
        <xs:enumeration value="currentuser"/>
    </xs:restriction>
</xs:simpleType>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child Elements

None

Parent Elements

None

Remarks

The CopyFrom Simple Type defines the from attribute in the CopyRule Complex Type (Work Item Type Definition Schema).

Enumeration Values

The CopyFrom Simple Type is a string restricted to the following values:

Attribute

Description

value

Specifies that the copied source is a specified value. If value is used, then the value attribute of COPY must be defined.

field

Specifies that the copied source is a field. If field is used, then the field attribute of COPY must be defined.

clock

Specifies that the copied source is the system clock.

currentuser

Specifies that the copied source is the currently logged-on user.

Element Information

Namespace

https://schemas.microsoft.com/VisualStudio/2005/workitemtracking/typedef

Schema Name

Work Item Type Definition

Validation File

WorkItemTypeDefinition.xsd

Can be Empty

Not applicable

See Also

Concepts

Available Field Rules

Specifying Field Defaults

Other Resources

Defining Field Rules