Skip to content

GetOwnerUsers

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

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

Parameters

boolean real
    Specifies whether to return real or simulated owners. Pass the value explicitly; omitted JavaScript arguments are treated as false by the current proxy.

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(true);
console.log(owners.length && owners[0].Name);

See Also