Пример #1
0
 /// <summary>
 ///     Get issue information
 ///     See: https://docs.atlassian.com/jira/REST/latest/#d2e4539
 /// </summary>
 /// <param name="jiraClient">IIssueDomain to bind the extension method to</param>
 /// <param name="issueKey">the issue key</param>
 /// <param name="cancellationToken">CancellationToken</param>
 /// <returns>Issue</returns>
 public static Task <Issue> GetAsync(this IIssueDomain jiraClient, string issueKey, CancellationToken cancellationToken = default)
 {
     return(jiraClient.GetAsync <Issue, IssueFields>(issueKey, cancellationToken));
 }
Пример #2
0
 /// <summary>
 ///     Get issue information
 ///     See: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get
 /// </summary>
 /// <param name="jiraClient">IIssueDomain to bind the extension method to</param>
 /// <param name="issueKey">the issue key</param>
 /// <param name="fields">IEnumerable of string A list of fields to return for the issue. Use it to retrieve a subset of fields.</param>
 /// <param name="expand">IEnumerable of string to specified which fields to expand</param>
 /// <param name="cancellationToken">CancellationToken</param>
 /// <returns>Issue</returns>
 public static Task <Issue> GetAsync(this IIssueDomain jiraClient, string issueKey, IEnumerable <string> fields = null, IEnumerable <string> expand = null,
                                     CancellationToken cancellationToken = default)
 {
     return(jiraClient.GetAsync <Issue, IssueFields>(issueKey, fields, expand, cancellationToken));
 }