Skip to content

GetOwnerUsers

Returns the array of users that work item assigned to.

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

Parameters

boolean real
    Specifies the return real or simulated owner. Default value is true.

Returns

Array of owner users.

Remarks

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

Example

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

See Also