Overview
Gets or sets the caption of a work item to display in user interfaces.string myWorkItem.Caption { get; set; }
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
// Changing the caption: $WorkItem.Caption = 'Leave Request';