Skip to content

Data

Gets the data of the work item.

Type

Xml

Declaration

1
readonly Xml myWorkItem.Data

Remarks

This property allows read-only access to the work item data. Any changes to the Xml are not saved to the database for data protection.

Examples

Compare a value with the previous step

1
2
3
4
5
var previous = $WorkItem.Previous;

if (previous && previous.Data.Evaluate('Total') !== $Xml.Evaluate('Total')) {
    $Xml.SetValue('TotalChanged', true);
}

See Also