SetSyncTag

This commit is contained in:
2023-10-07 13:57:40 -07:00
parent b943a882cb
commit 7d8f409ff3
4 changed files with 221 additions and 35 deletions

View File

@ -23,7 +23,9 @@ public class Fields
DateTime microsoftVSTSCommonStateChangeDate,
int microsoftVSTSCommonPriority,
string systemDescription,
string systemTags
string systemTags,
float? effort,
DateTime targetDate
)
{
SystemAreaPath = systemAreaPath;
@ -43,6 +45,8 @@ public class Fields
MicrosoftVSTSCommonPriority = microsoftVSTSCommonPriority;
SystemDescription = systemDescription;
SystemTags = systemTags;
Effort = effort;
TargetDate = targetDate;
}
[JsonPropertyName("System.AreaPath")]
@ -95,4 +99,10 @@ public class Fields
[JsonPropertyName("System.Tags")]
public string SystemTags { get; } // { init; get; }
[JsonPropertyName("Microsoft.VSTS.Scheduling.Effort")]
public float? Effort { get; } // { init; get; }
[JsonPropertyName("Microsoft.VSTS.Scheduling.TargetDate")]
public DateTime TargetDate { get; } // { init; get; }
}

View File

@ -0,0 +1,19 @@
using System.Text.Json.Serialization;
namespace Adaptation.FileHandlers.json.WorkItems;
public class ValueWithReq
{
[JsonConstructor]
public ValueWithReq(
Value value,
int req
)
{
Value = value;
Req = req;
}
public Value Value { get; set; } // { init; get; }
public int Req { get; set; } // { init; get; }
}