Skip to content

GetOwnerUsers

Returns an array of users to whom the work item is assigned.

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

Parameters

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

Returns

An array of owner users.

Remarks

This method returns a dynamically calculated array of user-type identities. When organization changes (e.g., adding or removing a user to a position), the return value also changes.

Example

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

See Also