Skip to content

GetOwners

Returns the array of identities that work item assigned to.

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

Parameters

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

Returns

Array of identities that work item assigned to.

Remarks

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

Example

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

See Also