Ejemplo n.º 1
0
 /// <summary>
 /// Gets transitions' list of an existing issue.
 /// </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>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 /// <returns>
 ///     List of issue's transitions.
 /// </returns>
 public static Task <JiraTransition[]> GetTransitionsAsync(this IJira jira, JiraIssueReference issueReference)
 {
     return(jira.GetTransitionsAsync(issueReference, CancellationToken.None));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets transitions' list of an existing issue.
 /// </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>
 /// <exception cref="SimpleJira.Interface.JiraAuthorizationException">Throws exception when user is not authorized.</exception>
 /// <exception cref="SimpleJira.Interface.JiraException">Throws exception in other cases.</exception>
 /// <returns>
 ///     List of issue's transitions.
 /// </returns>
 public static JiraTransition[] GetTransitions(this IJira jira, JiraIssueReference issueReference)
 {
     return(jira.GetTransitionsAsync(issueReference, CancellationToken.None).GetAwaiter().GetResult());
 }