internal static int GetAssignmentPercentage(Task task, User user) { HPMTaskResourceAllocationResource[] allocations = Session.TaskGetResourceAllocation(task.UniqueTaskID).m_Resources; foreach (HPMTaskResourceAllocationResource ra in allocations) if (ra.m_ResourceID.m_ID == user.UniqueID.m_ID) return ra.m_PercentAllocated; return 0; }
/// <summary> /// The assignment percentage of a particular user that is assigned to this product backlog item. /// </summary> /// <param name="user">The name of the user.</param> /// <returns>The assignment percentage.</returns> public int GetAssignmentPercentage(User user) { return TaskHelper.GetAssignmentPercentage(this, user); }