Skip to content

Caption

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

1
 string myWorkItem.Caption

Remarks

The caption is evaluated from the task caption by default, but unlike the Name property, this property can be changed later.
If the WorkItem.State is not in Waiting or Created, attempting to set this property is prohibited and throws an access denied error.

Example

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