public virtual void Initialize(WorkItemNode workItem) { this.Node = workItem; this.Id = workItem.Item.Id; this.Title = workItem.Item.Title; this.CreatedBy = Constants.GetResource(workItem.Item.CreatedBy); this.CreatedDate = workItem.Item.CreatedDate; this.LastModifiedBy = Constants.GetResource(workItem.Item.ChangedBy); this.LastModifiedDate = workItem.Item.ChangedDate; this.State = workItem.Item.State; this.AssignedTo = Constants.GetResource((string)workItem.Item.Fields[TFSLiterals.AssignedTo].Value); EnumerateChildren(); }
public override void Initialize(WorkItemNode workItem) { base.Initialize(workItem); Cause = workItem.Item.Fields[TFSLiterals.Cause].Value.ToString().Trim(); HowFixed = (string)workItem.Item.Fields[TFSLiterals.HowFixed].Value.ToString().Trim(); if (State == BugStatusType.Closed.ToString()) { SQAResource = Constants.GetResource(workItem.Item.Fields[TFSLiterals.ClosedBy].Value.ToString().Trim()); } else { SQAResource = Constants.GetResource(workItem.Item.Fields[TFSLiterals.SQAOwner].Value.ToString().Trim()); } }
internal virtual void GetParentId(WorkItemNode workItemNode) { this.ParentId = string.Empty; if (workItemNode != null && workItemNode.Item != null && workItemNode.Item.WorkItemLinks != null && workItemNode.Item.WorkItemLinks.Count > 0) { foreach (WorkItemLink workItemLink in workItemNode.Item.WorkItemLinks) { if (workItemLink.LinkTypeEnd.Name == "Parent") { this.ParentId = workItemLink.TargetId.ToString(); break; } } } }
public override void Initialize(WorkItemNode workItem) { base.Initialize(workItem); this.Activity = Utilities.GetActityType(workItem.Item.Fields[TFSLiterals.Activity].Value.ToString()); this.OriginalWork = workItem.Item.Fields[TFSLiterals.OriginalEstimate].Value.GetDoubleValue(); }