Skip to content

GetOwners

Returns an array of identities to which the work item is assigned.

1
myWorkItem.GetOwners(real: boolean):Array<Identity>

Parameters

boolean real
    Specifies whether to return real or simulated owners. The default value is true.

Returns

An array of identities to which the work item is assigned.

Remarks

This method always returns the assigned identities (Position, User, etc.) without any calculation. If you need the assigned users, see the WorkItem.GetOwnerUsers method.

Example

1
2
var owners = $WorkItem.GetOwners();
console.log(owners.length && owners[0].Name);

See Also