Field Object

Fields collection #

You can iterate over the Field collection of a work item.

foreach (var f in self.Fields) {
    logger.Log("{0} #{1} has {2} field", self.TypeName, self.Id, f.Name);
}

You can directly access a Field using its name:

self.Fields["Title"]

Prefer using Reference names, e.g. System.Title, as they do not depend on localization and are more resilient to Process template changes.

Field Object #

The Field object exposes the following properties: