async Task OnExecuteAsync() { var fields = new Request.Fields { issuetype = Type.HasValue ? new Request.Id { id = Type.Value.ToString() } : null }; var update = new Request.Update { timetracking = string.IsNullOrEmpty(Estimate) ? null : new Request.FieldUpdate <Request.Timetracking>[] { new Request.FieldUpdate <Request.Timetracking> { set = new Request.Timetracking { originalEstimate = Estimate } } } }; await Jira.EditIssu(IssueIdOrKey, fields, update); }
public async Task EditIssu(string issueIdOrKey, Request.Fields fields, Request.Update update = null) => await PutAsync(new Request.Issue { IdOrKey = issueIdOrKey, RequestBody = new Request.EditBody { fields = fields, update = update } });