示例#1
0
 /// <summary>
 /// Invokes issue's transition.
 /// </summary>
 /// <param name="jira">Instance of <c>SimpleJira.Interface.IJira</c>.</param>
 /// <param name="issueReference">Reference to an existing issue. Should contains issue's key or issue's id.</param>
 /// <param name="transitionId">Identifier of the transition.</param>
 /// <param name="fields">Fields to update.</param>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 public static Task InvokeTransitionAsync(this IJira jira, JiraIssueReference issueReference,
                                          string transitionId, object fields)
 {
     return(jira.InvokeTransitionAsync(issueReference, transitionId, fields, CancellationToken.None));
 }
示例#2
0
 /// <summary>
 /// Invokes issue's transition.
 /// </summary>
 /// <param name="jira">Instance of <c>SimpleJira.Interface.IJira</c>.</param>
 /// <param name="issueReference">Reference to an existing issue. Should contains issue's key or issue's id.</param>
 /// <param name="transitionId">Identifier of the transition.</param>
 /// <param name="fields">Fields to update.</param>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 public static void InvokeTransition(this IJira jira, JiraIssueReference issueReference,
                                     string transitionId, object fields)
 {
     jira.InvokeTransitionAsync(issueReference, transitionId, fields, CancellationToken.None).GetAwaiter()
     .GetResult();
 }