コード例 #1
0
ファイル: Cmd.cs プロジェクト: Herdubreid/Jira
 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);
 }
コード例 #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
     }
 });