Added RemainingWork and StoryPoints
This commit is contained in:
@ -24,12 +24,14 @@ internal class WorkItem
|
||||
int? parent,
|
||||
int? priority,
|
||||
Relation[]? relations,
|
||||
long? remainingWork,
|
||||
string? requester,
|
||||
DateTime? resolvedDate,
|
||||
int revision,
|
||||
long? riskReductionMinusOpportunityEnablement,
|
||||
DateTime? startDate,
|
||||
string state,
|
||||
long? storyPoints,
|
||||
string tags,
|
||||
DateTime? targetDate,
|
||||
long? timeCriticality,
|
||||
@ -53,12 +55,14 @@ internal class WorkItem
|
||||
Parent = parent;
|
||||
Priority = priority;
|
||||
Relations = relations;
|
||||
RemainingWork = remainingWork;
|
||||
Requester = requester;
|
||||
ResolvedDate = resolvedDate;
|
||||
Revision = revision;
|
||||
RiskReductionMinusOpportunityEnablement = riskReductionMinusOpportunityEnablement;
|
||||
StartDate = startDate;
|
||||
State = state;
|
||||
StoryPoints = storyPoints;
|
||||
Tags = tags;
|
||||
TargetDate = targetDate;
|
||||
TimeCriticality = timeCriticality;
|
||||
@ -72,67 +76,71 @@ internal class WorkItem
|
||||
|
||||
public static WorkItem Get(WorkItem workItem, Relation[] relations)
|
||||
{
|
||||
WorkItem result = new(workItem.ActivatedDate,
|
||||
workItem.AreaPath,
|
||||
workItem.AssignedTo,
|
||||
workItem.BusinessValue,
|
||||
workItem.ChangedDate,
|
||||
workItem.ClosedDate,
|
||||
workItem.CommentCount,
|
||||
workItem.CreatedDate,
|
||||
workItem.Description,
|
||||
workItem.Effort,
|
||||
workItem.Id,
|
||||
workItem.IterationPath,
|
||||
workItem.Parent,
|
||||
workItem.Priority,
|
||||
relations,
|
||||
workItem.Requester,
|
||||
workItem.ResolvedDate,
|
||||
workItem.Revision,
|
||||
workItem.RiskReductionMinusOpportunityEnablement,
|
||||
workItem.StartDate,
|
||||
workItem.State,
|
||||
workItem.Tags,
|
||||
workItem.TargetDate,
|
||||
workItem.TimeCriticality,
|
||||
workItem.Title,
|
||||
workItem.Violation,
|
||||
workItem.WeightedShortestJobFirst,
|
||||
workItem.WorkItemType);
|
||||
WorkItem result = new(activatedDate: workItem.ActivatedDate,
|
||||
areaPath: workItem.AreaPath,
|
||||
assignedTo: workItem.AssignedTo,
|
||||
businessValue: workItem.BusinessValue,
|
||||
changedDate: workItem.ChangedDate,
|
||||
closedDate: workItem.ClosedDate,
|
||||
commentCount: workItem.CommentCount,
|
||||
createdDate: workItem.CreatedDate,
|
||||
description: workItem.Description,
|
||||
effort: workItem.Effort,
|
||||
id: workItem.Id,
|
||||
iterationPath: workItem.IterationPath,
|
||||
parent: workItem.Parent,
|
||||
priority: workItem.Priority,
|
||||
relations: relations,
|
||||
remainingWork: workItem.RemainingWork,
|
||||
requester: workItem.Requester,
|
||||
resolvedDate: workItem.ResolvedDate,
|
||||
revision: workItem.Revision,
|
||||
riskReductionMinusOpportunityEnablement: workItem.RiskReductionMinusOpportunityEnablement,
|
||||
startDate: workItem.StartDate,
|
||||
state: workItem.State,
|
||||
storyPoints: workItem.StoryPoints,
|
||||
tags: workItem.Tags,
|
||||
targetDate: workItem.TargetDate,
|
||||
timeCriticality: workItem.TimeCriticality,
|
||||
title: workItem.Title,
|
||||
violation: workItem.Violation,
|
||||
weightedShortestJobFirst: workItem.WeightedShortestJobFirst,
|
||||
workItemType: workItem.WorkItemType);
|
||||
return result;
|
||||
}
|
||||
|
||||
public static WorkItem? GetWithOutRelations(WorkItem? workItem)
|
||||
{
|
||||
WorkItem? result = workItem is null ? null : new(workItem.ActivatedDate,
|
||||
workItem.AreaPath,
|
||||
workItem.AssignedTo,
|
||||
workItem.BusinessValue,
|
||||
workItem.ChangedDate,
|
||||
workItem.ClosedDate,
|
||||
workItem.CommentCount,
|
||||
workItem.CreatedDate,
|
||||
workItem.Description,
|
||||
workItem.Effort,
|
||||
workItem.Id,
|
||||
workItem.IterationPath,
|
||||
workItem.Parent,
|
||||
workItem.Priority,
|
||||
Array.Empty<Relation>(),
|
||||
workItem.Requester,
|
||||
workItem.ResolvedDate,
|
||||
workItem.Revision,
|
||||
workItem.RiskReductionMinusOpportunityEnablement,
|
||||
workItem.StartDate,
|
||||
workItem.State,
|
||||
workItem.Tags,
|
||||
workItem.TargetDate,
|
||||
workItem.TimeCriticality,
|
||||
workItem.Title,
|
||||
workItem.Violation,
|
||||
workItem.WeightedShortestJobFirst,
|
||||
workItem.WorkItemType);
|
||||
WorkItem? result = workItem is null ? null : new(activatedDate: workItem.ActivatedDate,
|
||||
areaPath: workItem.AreaPath,
|
||||
assignedTo: workItem.AssignedTo,
|
||||
businessValue: workItem.BusinessValue,
|
||||
changedDate: workItem.ChangedDate,
|
||||
closedDate: workItem.ClosedDate,
|
||||
commentCount: workItem.CommentCount,
|
||||
createdDate: workItem.CreatedDate,
|
||||
description: workItem.Description,
|
||||
effort: workItem.Effort,
|
||||
id: workItem.Id,
|
||||
iterationPath: workItem.IterationPath,
|
||||
parent: workItem.Parent,
|
||||
priority: workItem.Priority,
|
||||
relations: Array.Empty<Relation>(),
|
||||
remainingWork: workItem.RemainingWork,
|
||||
requester: workItem.Requester,
|
||||
resolvedDate: workItem.ResolvedDate,
|
||||
revision: workItem.Revision,
|
||||
riskReductionMinusOpportunityEnablement: workItem.RiskReductionMinusOpportunityEnablement,
|
||||
startDate: workItem.StartDate,
|
||||
state: workItem.State,
|
||||
storyPoints: workItem.StoryPoints,
|
||||
tags: workItem.Tags,
|
||||
targetDate: workItem.TargetDate,
|
||||
timeCriticality: workItem.TimeCriticality,
|
||||
title: workItem.Title,
|
||||
violation: workItem.Violation,
|
||||
weightedShortestJobFirst: workItem.WeightedShortestJobFirst,
|
||||
workItemType: workItem.WorkItemType);
|
||||
return result;
|
||||
}
|
||||
|
||||
@ -151,12 +159,14 @@ internal class WorkItem
|
||||
[JsonPropertyName("Parent")] public int? Parent { get; }
|
||||
[JsonPropertyName("Priority")] public int? Priority { get; }
|
||||
[JsonPropertyName("Relations")] public Relation[]? Relations { get; }
|
||||
[JsonPropertyName("RemainingWork")] public long? RemainingWork { get; }
|
||||
[JsonPropertyName("Requester")] public string? Requester { get; }
|
||||
[JsonPropertyName("ResolvedDate")] public DateTime? ResolvedDate { get; }
|
||||
[JsonPropertyName("Revision")] public int Revision { get; }
|
||||
[JsonPropertyName("RiskReductionMinusOpportunityEnablement")] public long? RiskReductionMinusOpportunityEnablement { get; }
|
||||
[JsonPropertyName("StartDate")] public DateTime? StartDate { get; }
|
||||
[JsonPropertyName("State")] public string State { get; }
|
||||
[JsonPropertyName("StoryPoints")] public long? StoryPoints { get; }
|
||||
[JsonPropertyName("Tags")] public string Tags { get; }
|
||||
[JsonPropertyName("TargetDate")] public DateTime? TargetDate { get; }
|
||||
[JsonPropertyName("TimeCriticality")] public long? TimeCriticality { get; }
|
||||
|
Reference in New Issue
Block a user