Added RemainingWork and StoryPoints
This commit is contained in:
parent
0f23ba19cc
commit
c3b309347c
@ -161,34 +161,36 @@ public class FileRead : Shared.FileRead, IFileRead
|
|||||||
relations.Add(relation);
|
relations.Add(relation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
workItem = new(fields.MicrosoftVSTSCommonActivatedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonActivatedDate,
|
workItem = new(activatedDate: fields.MicrosoftVSTSCommonActivatedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonActivatedDate,
|
||||||
fields.SystemAreaPath,
|
areaPath: fields.SystemAreaPath,
|
||||||
fields.SystemAssignedTo?.DisplayName,
|
assignedTo: fields.SystemAssignedTo?.DisplayName,
|
||||||
fields.MicrosoftVSTSCommonBusinessValue is null or 0 ? null : (long)fields.MicrosoftVSTSCommonBusinessValue,
|
businessValue: fields.MicrosoftVSTSCommonBusinessValue is null or 0 ? null : (long)fields.MicrosoftVSTSCommonBusinessValue,
|
||||||
fields.SystemChangedDate,
|
changedDate: fields.SystemChangedDate,
|
||||||
fields.MicrosoftVSTSCommonClosedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonClosedDate,
|
closedDate: fields.MicrosoftVSTSCommonClosedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonClosedDate,
|
||||||
fields.SystemCommentCount,
|
commentCount: fields.SystemCommentCount,
|
||||||
fields.SystemCreatedDate,
|
createdDate: fields.SystemCreatedDate,
|
||||||
fields.SystemDescription,
|
description: fields.SystemDescription,
|
||||||
fields.MicrosoftVSTSSchedulingEffort is null or 0 ? null : (long)fields.MicrosoftVSTSSchedulingEffort,
|
effort: fields.MicrosoftVSTSSchedulingEffort is null or 0 ? null : (long)fields.MicrosoftVSTSSchedulingEffort,
|
||||||
value.Id,
|
id: value.Id,
|
||||||
fields.SystemIterationPath,
|
iterationPath: fields.SystemIterationPath,
|
||||||
fields.SystemParent == 0 ? null : fields.SystemParent,
|
parent: fields.SystemParent == 0 ? null : fields.SystemParent,
|
||||||
fields.MicrosoftVSTSCommonPriority == 0 ? null : fields.MicrosoftVSTSCommonPriority,
|
priority: fields.MicrosoftVSTSCommonPriority == 0 ? null : fields.MicrosoftVSTSCommonPriority,
|
||||||
relations.ToArray(),
|
relations: relations.ToArray(),
|
||||||
fields.CustomRequester?.DisplayName,
|
remainingWork: fields.MicrosoftVSTSSchedulingRemainingWork is null ? null : (long)fields.MicrosoftVSTSSchedulingRemainingWork,
|
||||||
fields.MicrosoftVSTSCommonResolvedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonResolvedDate,
|
requester: fields.CustomRequester?.DisplayName,
|
||||||
value.Rev,
|
resolvedDate: fields.MicrosoftVSTSCommonResolvedDate == DateTime.MinValue ? null : fields.MicrosoftVSTSCommonResolvedDate,
|
||||||
fields.CustomRRminusOE is null or 0 ? null : (long)fields.CustomRRminusOE,
|
revision: value.Rev,
|
||||||
fields.MicrosoftVSTSSchedulingStartDate == DateTime.MinValue ? null : fields.MicrosoftVSTSSchedulingStartDate,
|
riskReductionMinusOpportunityEnablement: fields.CustomRRminusOE is null or 0 ? null : (long)fields.CustomRRminusOE,
|
||||||
fields.SystemState,
|
startDate: fields.MicrosoftVSTSSchedulingStartDate == DateTime.MinValue ? null : fields.MicrosoftVSTSSchedulingStartDate,
|
||||||
fields.SystemTags,
|
state: fields.SystemState,
|
||||||
fields.MicrosoftVSTSSchedulingTargetDate == DateTime.MinValue ? null : fields.MicrosoftVSTSSchedulingTargetDate,
|
storyPoints: fields.MicrosoftVSTSSchedulingStoryPoints is null ? null : (long)fields.MicrosoftVSTSSchedulingStoryPoints,
|
||||||
fields.MicrosoftVSTSCommonTimeCriticality is null or 0 ? null : (long)fields.MicrosoftVSTSCommonTimeCriticality,
|
tags: fields.SystemTags,
|
||||||
fields.SystemTitle.Trim(),
|
targetDate: fields.MicrosoftVSTSSchedulingTargetDate == DateTime.MinValue ? null : fields.MicrosoftVSTSSchedulingTargetDate,
|
||||||
null,
|
timeCriticality: fields.MicrosoftVSTSCommonTimeCriticality is null or 0 ? null : (long)fields.MicrosoftVSTSCommonTimeCriticality,
|
||||||
fields.CustomWSJF is null or 0 ? null : (long)fields.CustomWSJF,
|
title: fields.SystemTitle.Trim(),
|
||||||
fields.SystemWorkItemType);
|
violation: null,
|
||||||
|
weightedShortestJobFirst: fields.CustomWSJF is null or 0 ? null : (long)fields.CustomWSJF,
|
||||||
|
workItemType: fields.SystemWorkItemType);
|
||||||
results.Add(workItem.Id, workItem);
|
results.Add(workItem.Id, workItem);
|
||||||
}
|
}
|
||||||
return new(results);
|
return new(results);
|
||||||
|
@ -20,7 +20,9 @@ internal class Fields
|
|||||||
DateTime microsoftVSTSCommonStateChangeDate,
|
DateTime microsoftVSTSCommonStateChangeDate,
|
||||||
float? microsoftVSTSCommonTimeCriticality,
|
float? microsoftVSTSCommonTimeCriticality,
|
||||||
float? microsoftVSTSSchedulingEffort,
|
float? microsoftVSTSSchedulingEffort,
|
||||||
|
float? microsoftVSTSSchedulingRemainingWork,
|
||||||
DateTime microsoftVSTSSchedulingStartDate,
|
DateTime microsoftVSTSSchedulingStartDate,
|
||||||
|
float? microsoftVSTSSchedulingStoryPoints,
|
||||||
DateTime microsoftVSTSSchedulingTargetDate,
|
DateTime microsoftVSTSSchedulingTargetDate,
|
||||||
string systemAreaPath,
|
string systemAreaPath,
|
||||||
SystemAssignedTo systemAssignedTo,
|
SystemAssignedTo systemAssignedTo,
|
||||||
@ -40,8 +42,8 @@ internal class Fields
|
|||||||
string systemTitle,
|
string systemTitle,
|
||||||
string systemWorkItemType)
|
string systemWorkItemType)
|
||||||
{
|
{
|
||||||
CustomRequester = customRequester;
|
|
||||||
CustomRRminusOE = customRRminusOE;
|
CustomRRminusOE = customRRminusOE;
|
||||||
|
CustomRequester = customRequester;
|
||||||
CustomWSJF = customWSJF;
|
CustomWSJF = customWSJF;
|
||||||
MicrosoftVSTSCommonActivatedDate = microsoftVSTSCommonActivatedDate;
|
MicrosoftVSTSCommonActivatedDate = microsoftVSTSCommonActivatedDate;
|
||||||
MicrosoftVSTSCommonBusinessValue = microsoftVSTSCommonBusinessValue;
|
MicrosoftVSTSCommonBusinessValue = microsoftVSTSCommonBusinessValue;
|
||||||
@ -51,7 +53,9 @@ internal class Fields
|
|||||||
MicrosoftVSTSCommonStateChangeDate = microsoftVSTSCommonStateChangeDate;
|
MicrosoftVSTSCommonStateChangeDate = microsoftVSTSCommonStateChangeDate;
|
||||||
MicrosoftVSTSCommonTimeCriticality = microsoftVSTSCommonTimeCriticality;
|
MicrosoftVSTSCommonTimeCriticality = microsoftVSTSCommonTimeCriticality;
|
||||||
MicrosoftVSTSSchedulingEffort = microsoftVSTSSchedulingEffort;
|
MicrosoftVSTSSchedulingEffort = microsoftVSTSSchedulingEffort;
|
||||||
|
MicrosoftVSTSSchedulingRemainingWork = microsoftVSTSSchedulingRemainingWork;
|
||||||
MicrosoftVSTSSchedulingStartDate = microsoftVSTSSchedulingStartDate;
|
MicrosoftVSTSSchedulingStartDate = microsoftVSTSSchedulingStartDate;
|
||||||
|
MicrosoftVSTSSchedulingStoryPoints = microsoftVSTSSchedulingStoryPoints;
|
||||||
MicrosoftVSTSSchedulingTargetDate = microsoftVSTSSchedulingTargetDate;
|
MicrosoftVSTSSchedulingTargetDate = microsoftVSTSSchedulingTargetDate;
|
||||||
SystemAreaPath = systemAreaPath;
|
SystemAreaPath = systemAreaPath;
|
||||||
SystemAssignedTo = systemAssignedTo;
|
SystemAssignedTo = systemAssignedTo;
|
||||||
@ -72,8 +76,8 @@ internal class Fields
|
|||||||
SystemWorkItemType = systemWorkItemType;
|
SystemWorkItemType = systemWorkItemType;
|
||||||
}
|
}
|
||||||
|
|
||||||
[JsonPropertyName("Custom.Requester")] public CustomRequester? CustomRequester { get; }
|
|
||||||
[JsonPropertyName("Custom.RRminusOE")] public float? CustomRRminusOE { get; }
|
[JsonPropertyName("Custom.RRminusOE")] public float? CustomRRminusOE { get; }
|
||||||
|
[JsonPropertyName("Custom.Requester")] public CustomRequester? CustomRequester { get; }
|
||||||
[JsonPropertyName("Custom.WSJF")] public float? CustomWSJF { get; }
|
[JsonPropertyName("Custom.WSJF")] public float? CustomWSJF { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Common.ActivatedDate")] public DateTime MicrosoftVSTSCommonActivatedDate { get; }
|
[JsonPropertyName("Microsoft.VSTS.Common.ActivatedDate")] public DateTime MicrosoftVSTSCommonActivatedDate { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Common.BusinessValue")] public float? MicrosoftVSTSCommonBusinessValue { get; }
|
[JsonPropertyName("Microsoft.VSTS.Common.BusinessValue")] public float? MicrosoftVSTSCommonBusinessValue { get; }
|
||||||
@ -83,7 +87,9 @@ internal class Fields
|
|||||||
[JsonPropertyName("Microsoft.VSTS.Common.StateChangeDate")] public DateTime MicrosoftVSTSCommonStateChangeDate { get; }
|
[JsonPropertyName("Microsoft.VSTS.Common.StateChangeDate")] public DateTime MicrosoftVSTSCommonStateChangeDate { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Common.TimeCriticality")] public float? MicrosoftVSTSCommonTimeCriticality { get; }
|
[JsonPropertyName("Microsoft.VSTS.Common.TimeCriticality")] public float? MicrosoftVSTSCommonTimeCriticality { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")] public float? MicrosoftVSTSSchedulingEffort { get; }
|
[JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")] public float? MicrosoftVSTSSchedulingEffort { get; }
|
||||||
|
[JsonPropertyName("Microsoft.VSTS.Scheduling.RemainingWork")] public float? MicrosoftVSTSSchedulingRemainingWork { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.StartDate")] public DateTime MicrosoftVSTSSchedulingStartDate { get; }
|
[JsonPropertyName("Microsoft.VSTS.Scheduling.StartDate")] public DateTime MicrosoftVSTSSchedulingStartDate { get; }
|
||||||
|
[JsonPropertyName("Microsoft.VSTS.Scheduling.StoryPoints")] public float? MicrosoftVSTSSchedulingStoryPoints { get; }
|
||||||
[JsonPropertyName("Microsoft.VSTS.Scheduling.TargetDate")] public DateTime MicrosoftVSTSSchedulingTargetDate { get; }
|
[JsonPropertyName("Microsoft.VSTS.Scheduling.TargetDate")] public DateTime MicrosoftVSTSSchedulingTargetDate { get; }
|
||||||
[JsonPropertyName("System.AreaPath")] public string SystemAreaPath { get; }
|
[JsonPropertyName("System.AreaPath")] public string SystemAreaPath { get; }
|
||||||
[JsonPropertyName("System.AssignedTo")] public SystemAssignedTo? SystemAssignedTo { get; }
|
[JsonPropertyName("System.AssignedTo")] public SystemAssignedTo? SystemAssignedTo { get; }
|
||||||
|
@ -30,34 +30,36 @@ internal class Record
|
|||||||
internal static Record GetWithoutNesting(Record record, string? violation)
|
internal static Record GetWithoutNesting(Record record, string? violation)
|
||||||
{
|
{
|
||||||
Record result;
|
Record result;
|
||||||
WorkItem workItem = new(record.WorkItem.ActivatedDate,
|
WorkItem workItem = new(activatedDate: record.WorkItem.ActivatedDate,
|
||||||
record.WorkItem.AreaPath,
|
areaPath: record.WorkItem.AreaPath,
|
||||||
record.WorkItem.AssignedTo,
|
assignedTo: record.WorkItem.AssignedTo,
|
||||||
record.WorkItem.BusinessValue,
|
businessValue: record.WorkItem.BusinessValue,
|
||||||
record.WorkItem.ChangedDate,
|
changedDate: record.WorkItem.ChangedDate,
|
||||||
record.WorkItem.ClosedDate,
|
closedDate: record.WorkItem.ClosedDate,
|
||||||
record.WorkItem.CommentCount,
|
commentCount: record.WorkItem.CommentCount,
|
||||||
record.WorkItem.CreatedDate,
|
createdDate: record.WorkItem.CreatedDate,
|
||||||
record.WorkItem.Description,
|
description: record.WorkItem.Description,
|
||||||
record.WorkItem.Effort,
|
effort: record.WorkItem.Effort,
|
||||||
record.WorkItem.Id,
|
id: record.WorkItem.Id,
|
||||||
record.WorkItem.IterationPath,
|
iterationPath: record.WorkItem.IterationPath,
|
||||||
record.WorkItem.Parent,
|
parent: record.WorkItem.Parent,
|
||||||
record.WorkItem.Priority,
|
priority: record.WorkItem.Priority,
|
||||||
record.WorkItem.Relations,
|
relations: record.WorkItem.Relations,
|
||||||
record.WorkItem.Requester,
|
remainingWork: record.WorkItem.RemainingWork,
|
||||||
record.WorkItem.ResolvedDate,
|
requester: record.WorkItem.Requester,
|
||||||
record.WorkItem.Revision,
|
resolvedDate: record.WorkItem.ResolvedDate,
|
||||||
record.WorkItem.RiskReductionMinusOpportunityEnablement,
|
revision: record.WorkItem.Revision,
|
||||||
record.WorkItem.StartDate,
|
riskReductionMinusOpportunityEnablement: record.WorkItem.RiskReductionMinusOpportunityEnablement,
|
||||||
record.WorkItem.State,
|
startDate: record.WorkItem.StartDate,
|
||||||
record.WorkItem.Tags,
|
state: record.WorkItem.State,
|
||||||
record.WorkItem.TargetDate,
|
storyPoints: record.WorkItem.StoryPoints,
|
||||||
record.WorkItem.TimeCriticality,
|
tags: record.WorkItem.Tags,
|
||||||
record.WorkItem.Title,
|
targetDate: record.WorkItem.TargetDate,
|
||||||
record.WorkItem.Violation is null ? violation : record.WorkItem.Violation,
|
timeCriticality: record.WorkItem.TimeCriticality,
|
||||||
record.WorkItem.WeightedShortestJobFirst,
|
title: record.WorkItem.Title,
|
||||||
record.WorkItem.WorkItemType);
|
violation: record.WorkItem.Violation is null ? violation : record.WorkItem.Violation,
|
||||||
|
weightedShortestJobFirst: record.WorkItem.WeightedShortestJobFirst,
|
||||||
|
workItemType: record.WorkItem.WorkItemType);
|
||||||
result = new(workItem, record.Parent, Array.Empty<Record>(), Array.Empty<Record>(), Array.Empty<Record>());
|
result = new(workItem, record.Parent, Array.Empty<Record>(), Array.Empty<Record>(), Array.Empty<Record>());
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,14 @@ internal class WorkItem
|
|||||||
int? parent,
|
int? parent,
|
||||||
int? priority,
|
int? priority,
|
||||||
Relation[]? relations,
|
Relation[]? relations,
|
||||||
|
long? remainingWork,
|
||||||
string? requester,
|
string? requester,
|
||||||
DateTime? resolvedDate,
|
DateTime? resolvedDate,
|
||||||
int revision,
|
int revision,
|
||||||
long? riskReductionMinusOpportunityEnablement,
|
long? riskReductionMinusOpportunityEnablement,
|
||||||
DateTime? startDate,
|
DateTime? startDate,
|
||||||
string state,
|
string state,
|
||||||
|
long? storyPoints,
|
||||||
string tags,
|
string tags,
|
||||||
DateTime? targetDate,
|
DateTime? targetDate,
|
||||||
long? timeCriticality,
|
long? timeCriticality,
|
||||||
@ -53,12 +55,14 @@ internal class WorkItem
|
|||||||
Parent = parent;
|
Parent = parent;
|
||||||
Priority = priority;
|
Priority = priority;
|
||||||
Relations = relations;
|
Relations = relations;
|
||||||
|
RemainingWork = remainingWork;
|
||||||
Requester = requester;
|
Requester = requester;
|
||||||
ResolvedDate = resolvedDate;
|
ResolvedDate = resolvedDate;
|
||||||
Revision = revision;
|
Revision = revision;
|
||||||
RiskReductionMinusOpportunityEnablement = riskReductionMinusOpportunityEnablement;
|
RiskReductionMinusOpportunityEnablement = riskReductionMinusOpportunityEnablement;
|
||||||
StartDate = startDate;
|
StartDate = startDate;
|
||||||
State = state;
|
State = state;
|
||||||
|
StoryPoints = storyPoints;
|
||||||
Tags = tags;
|
Tags = tags;
|
||||||
TargetDate = targetDate;
|
TargetDate = targetDate;
|
||||||
TimeCriticality = timeCriticality;
|
TimeCriticality = timeCriticality;
|
||||||
@ -72,67 +76,71 @@ internal class WorkItem
|
|||||||
|
|
||||||
public static WorkItem Get(WorkItem workItem, Relation[] relations)
|
public static WorkItem Get(WorkItem workItem, Relation[] relations)
|
||||||
{
|
{
|
||||||
WorkItem result = new(workItem.ActivatedDate,
|
WorkItem result = new(activatedDate: workItem.ActivatedDate,
|
||||||
workItem.AreaPath,
|
areaPath: workItem.AreaPath,
|
||||||
workItem.AssignedTo,
|
assignedTo: workItem.AssignedTo,
|
||||||
workItem.BusinessValue,
|
businessValue: workItem.BusinessValue,
|
||||||
workItem.ChangedDate,
|
changedDate: workItem.ChangedDate,
|
||||||
workItem.ClosedDate,
|
closedDate: workItem.ClosedDate,
|
||||||
workItem.CommentCount,
|
commentCount: workItem.CommentCount,
|
||||||
workItem.CreatedDate,
|
createdDate: workItem.CreatedDate,
|
||||||
workItem.Description,
|
description: workItem.Description,
|
||||||
workItem.Effort,
|
effort: workItem.Effort,
|
||||||
workItem.Id,
|
id: workItem.Id,
|
||||||
workItem.IterationPath,
|
iterationPath: workItem.IterationPath,
|
||||||
workItem.Parent,
|
parent: workItem.Parent,
|
||||||
workItem.Priority,
|
priority: workItem.Priority,
|
||||||
relations,
|
relations: relations,
|
||||||
workItem.Requester,
|
remainingWork: workItem.RemainingWork,
|
||||||
workItem.ResolvedDate,
|
requester: workItem.Requester,
|
||||||
workItem.Revision,
|
resolvedDate: workItem.ResolvedDate,
|
||||||
workItem.RiskReductionMinusOpportunityEnablement,
|
revision: workItem.Revision,
|
||||||
workItem.StartDate,
|
riskReductionMinusOpportunityEnablement: workItem.RiskReductionMinusOpportunityEnablement,
|
||||||
workItem.State,
|
startDate: workItem.StartDate,
|
||||||
workItem.Tags,
|
state: workItem.State,
|
||||||
workItem.TargetDate,
|
storyPoints: workItem.StoryPoints,
|
||||||
workItem.TimeCriticality,
|
tags: workItem.Tags,
|
||||||
workItem.Title,
|
targetDate: workItem.TargetDate,
|
||||||
workItem.Violation,
|
timeCriticality: workItem.TimeCriticality,
|
||||||
workItem.WeightedShortestJobFirst,
|
title: workItem.Title,
|
||||||
workItem.WorkItemType);
|
violation: workItem.Violation,
|
||||||
|
weightedShortestJobFirst: workItem.WeightedShortestJobFirst,
|
||||||
|
workItemType: workItem.WorkItemType);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static WorkItem? GetWithOutRelations(WorkItem? workItem)
|
public static WorkItem? GetWithOutRelations(WorkItem? workItem)
|
||||||
{
|
{
|
||||||
WorkItem? result = workItem is null ? null : new(workItem.ActivatedDate,
|
WorkItem? result = workItem is null ? null : new(activatedDate: workItem.ActivatedDate,
|
||||||
workItem.AreaPath,
|
areaPath: workItem.AreaPath,
|
||||||
workItem.AssignedTo,
|
assignedTo: workItem.AssignedTo,
|
||||||
workItem.BusinessValue,
|
businessValue: workItem.BusinessValue,
|
||||||
workItem.ChangedDate,
|
changedDate: workItem.ChangedDate,
|
||||||
workItem.ClosedDate,
|
closedDate: workItem.ClosedDate,
|
||||||
workItem.CommentCount,
|
commentCount: workItem.CommentCount,
|
||||||
workItem.CreatedDate,
|
createdDate: workItem.CreatedDate,
|
||||||
workItem.Description,
|
description: workItem.Description,
|
||||||
workItem.Effort,
|
effort: workItem.Effort,
|
||||||
workItem.Id,
|
id: workItem.Id,
|
||||||
workItem.IterationPath,
|
iterationPath: workItem.IterationPath,
|
||||||
workItem.Parent,
|
parent: workItem.Parent,
|
||||||
workItem.Priority,
|
priority: workItem.Priority,
|
||||||
Array.Empty<Relation>(),
|
relations: Array.Empty<Relation>(),
|
||||||
workItem.Requester,
|
remainingWork: workItem.RemainingWork,
|
||||||
workItem.ResolvedDate,
|
requester: workItem.Requester,
|
||||||
workItem.Revision,
|
resolvedDate: workItem.ResolvedDate,
|
||||||
workItem.RiskReductionMinusOpportunityEnablement,
|
revision: workItem.Revision,
|
||||||
workItem.StartDate,
|
riskReductionMinusOpportunityEnablement: workItem.RiskReductionMinusOpportunityEnablement,
|
||||||
workItem.State,
|
startDate: workItem.StartDate,
|
||||||
workItem.Tags,
|
state: workItem.State,
|
||||||
workItem.TargetDate,
|
storyPoints: workItem.StoryPoints,
|
||||||
workItem.TimeCriticality,
|
tags: workItem.Tags,
|
||||||
workItem.Title,
|
targetDate: workItem.TargetDate,
|
||||||
workItem.Violation,
|
timeCriticality: workItem.TimeCriticality,
|
||||||
workItem.WeightedShortestJobFirst,
|
title: workItem.Title,
|
||||||
workItem.WorkItemType);
|
violation: workItem.Violation,
|
||||||
|
weightedShortestJobFirst: workItem.WeightedShortestJobFirst,
|
||||||
|
workItemType: workItem.WorkItemType);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,12 +159,14 @@ internal class WorkItem
|
|||||||
[JsonPropertyName("Parent")] public int? Parent { get; }
|
[JsonPropertyName("Parent")] public int? Parent { get; }
|
||||||
[JsonPropertyName("Priority")] public int? Priority { get; }
|
[JsonPropertyName("Priority")] public int? Priority { get; }
|
||||||
[JsonPropertyName("Relations")] public Relation[]? Relations { get; }
|
[JsonPropertyName("Relations")] public Relation[]? Relations { get; }
|
||||||
|
[JsonPropertyName("RemainingWork")] public long? RemainingWork { get; }
|
||||||
[JsonPropertyName("Requester")] public string? Requester { get; }
|
[JsonPropertyName("Requester")] public string? Requester { get; }
|
||||||
[JsonPropertyName("ResolvedDate")] public DateTime? ResolvedDate { get; }
|
[JsonPropertyName("ResolvedDate")] public DateTime? ResolvedDate { get; }
|
||||||
[JsonPropertyName("Revision")] public int Revision { get; }
|
[JsonPropertyName("Revision")] public int Revision { get; }
|
||||||
[JsonPropertyName("RiskReductionMinusOpportunityEnablement")] public long? RiskReductionMinusOpportunityEnablement { get; }
|
[JsonPropertyName("RiskReductionMinusOpportunityEnablement")] public long? RiskReductionMinusOpportunityEnablement { get; }
|
||||||
[JsonPropertyName("StartDate")] public DateTime? StartDate { get; }
|
[JsonPropertyName("StartDate")] public DateTime? StartDate { get; }
|
||||||
[JsonPropertyName("State")] public string State { get; }
|
[JsonPropertyName("State")] public string State { get; }
|
||||||
|
[JsonPropertyName("StoryPoints")] public long? StoryPoints { get; }
|
||||||
[JsonPropertyName("Tags")] public string Tags { get; }
|
[JsonPropertyName("Tags")] public string Tags { get; }
|
||||||
[JsonPropertyName("TargetDate")] public DateTime? TargetDate { get; }
|
[JsonPropertyName("TargetDate")] public DateTime? TargetDate { get; }
|
||||||
[JsonPropertyName("TimeCriticality")] public long? TimeCriticality { get; }
|
[JsonPropertyName("TimeCriticality")] public long? TimeCriticality { get; }
|
||||||
|
@ -60,24 +60,6 @@ stages:
|
|||||||
echo $(Configuration)
|
echo $(Configuration)
|
||||||
displayName: Configuration
|
displayName: Configuration
|
||||||
|
|
||||||
- script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Restore /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8 /p:RestoreSources=$(NugetSource)'
|
|
||||||
displayName: "MSBuild Restore"
|
|
||||||
|
|
||||||
- script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
|
|
||||||
displayName: MSBuild
|
|
||||||
|
|
||||||
- script: 'echo $(Build.Repository.Name)-$(Build.BuildId)-$(Build.SourceVersion)>bin\$(Configuration)\$(Build.Repository.Name).txt'
|
|
||||||
displayName: "Commit Id"
|
|
||||||
|
|
||||||
- task: CopyFiles@2
|
|
||||||
displayName: 'Copy Files to: D:\Framework4.8'
|
|
||||||
inputs:
|
|
||||||
Contents: "*$(Build.Repository.Name)*"
|
|
||||||
SourceFolder: 'bin\$(Configuration)'
|
|
||||||
TargetFolder: 'D:\Framework4.8\$(Build.Repository.Name)-$(Build.BuildId)-$(Build.SourceVersion)-$(Configuration)'
|
|
||||||
OverWrite: true
|
|
||||||
enabled: true
|
|
||||||
|
|
||||||
- script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)'
|
- script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)'
|
||||||
workingDirectory: Adaptation
|
workingDirectory: Adaptation
|
||||||
displayName: "Core Build - Adaptation"
|
displayName: "Core Build - Adaptation"
|
||||||
@ -99,9 +81,20 @@ stages:
|
|||||||
- script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
|
- script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
|
||||||
displayName: MSBuild
|
displayName: MSBuild
|
||||||
|
|
||||||
- script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)'
|
- script: '"C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe" /target:Build /detailedsummary /consoleloggerparameters:PerformanceSummary;ErrorsOnly; /property:Configuration=$(Configuration);TargetFrameworkVersion=v4.8'
|
||||||
workingDirectory: Adaptation
|
displayName: MSBuild
|
||||||
displayName: "Core Build - Adaptation"
|
|
||||||
|
- script: 'echo $(Build.Repository.Name)-$(Build.BuildId)-$(Build.SourceVersion)>bin\$(Configuration)\$(Build.Repository.Name).txt'
|
||||||
|
displayName: "Commit Id"
|
||||||
|
|
||||||
|
- task: CopyFiles@2
|
||||||
|
displayName: 'Copy Files to: D:\EAF'
|
||||||
|
inputs:
|
||||||
|
Contents: "*$(Build.Repository.Name)*"
|
||||||
|
SourceFolder: 'bin\$(Configuration)'
|
||||||
|
TargetFolder: 'D:\EAF\EAF Deployment Storage\Adaptation_$(Build.Repository.Name)'
|
||||||
|
OverWrite: true
|
||||||
|
enabled: true
|
||||||
|
|
||||||
- job: TestDebug
|
- job: TestDebug
|
||||||
dependsOn:
|
dependsOn:
|
||||||
@ -220,11 +213,11 @@ stages:
|
|||||||
displayName: "Commit Id"
|
displayName: "Commit Id"
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: 'Copy Files to: D:\Framework4.8'
|
displayName: 'Copy Files to: D:\EAF'
|
||||||
inputs:
|
inputs:
|
||||||
Contents: "*$(Build.Repository.Name)*"
|
Contents: "*$(Build.Repository.Name)*"
|
||||||
SourceFolder: 'bin\$(Configuration)'
|
SourceFolder: 'bin\$(Configuration)'
|
||||||
TargetFolder: 'D:\Framework4.8\$(Build.Repository.Name)-$(Build.BuildId)-$(Build.SourceVersion)-$(Configuration)'
|
TargetFolder: 'D:\EAF\EAF Deployment Storage\Adaptation_$(Build.Repository.Name)'
|
||||||
OverWrite: true
|
OverWrite: true
|
||||||
|
|
||||||
- script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)'
|
- script: '"C:\program files\dotnet\dotnet.exe" build --configuration $(Configuration) --source $(NugetSource)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user