Skip to content

Caption

Gets or sets the caption of a work item to display in user interfaces.

1
 string myWorkItem.Caption

Remarks

Caption is evaluated from the task caption by default, but unlike name property, this property can be changed later.
If the state is not in Waiting or Created, trying to set this property is prohibited and an access denied error will be thrown.

Example

1
2
// Changing the caption:
$WorkItem.Caption = 'Leave Request';