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 optional
    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 the organization changes, such as when a user is added to or removed from a position, the return value also changes.

Example

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

See Also