示例#1
0
 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();
 }
示例#2
0
 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());
     }
 }
示例#3
0
 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;
             }
         }
     }
 }
示例#4
0
 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();
 }