diff --git a/Apps.Lionbridge/Actions/JobActions.cs b/Apps.Lionbridge/Actions/JobActions.cs index 271849b..91dfc15 100644 --- a/Apps.Lionbridge/Actions/JobActions.cs +++ b/Apps.Lionbridge/Actions/JobActions.cs @@ -8,6 +8,7 @@ using Blackbird.Applications.Sdk.Common.Actions; using Blackbird.Applications.Sdk.Common.Invocation; using Blackbird.Applications.Sdk.Utils.Extensions.Http; +using Microsoft.VisualBasic; using RestSharp; namespace Apps.Lionbridge.Actions; @@ -25,7 +26,8 @@ public async Task CreateJob([ActionParameter] CreateJobRequest input) description = input.Description, providerId = input.ProviderId, extendedMetadata = EnumerableExtensions.ToDictionary(input.MetadataKeys, input.MetadataValues), - labels = EnumerableExtensions.ToDictionary(input.LabelKeys, input.LabelValues) + labels = EnumerableExtensions.ToDictionary(input.LabelKeys, input.LabelValues), + DueDate = input.dueDate.HasValue ? input.dueDate.Value.ToString("yyyy-MM-dd") : null }); return await Client.ExecuteWithErrorHandling(request); diff --git a/Apps.Lionbridge/Models/Requests/Job/CreateJobRequest.cs b/Apps.Lionbridge/Models/Requests/Job/CreateJobRequest.cs index 0b9415c..c151b95 100644 --- a/Apps.Lionbridge/Models/Requests/Job/CreateJobRequest.cs +++ b/Apps.Lionbridge/Models/Requests/Job/CreateJobRequest.cs @@ -30,4 +30,7 @@ public class CreateJobRequest [Display("Label values", Description = "Label values. For each specified value, a respective key should be " + "added in the 'Label keys' input parameter.")] public IEnumerable? LabelValues { get; set; } + + [Display("Due date")] + public DateTime? dueDate { get; set; } } \ No newline at end of file