Exemple #1
0
 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);
 }
Exemple #2
0
 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
     }
 });