Beispiel #1
0
        /// <summary>
        /// Deletes the issue specified from the JIRA server.
        /// </summary>
        /// <param name="issue">Issue to delete.</param>
        public void DeleteIssue(Issue issue)
        {
            if (issue.Key == null || String.IsNullOrEmpty(issue.Key.ToString()))
            {
                throw new InvalidOperationException("Unable to delete issue, it has not been created.");
            }

            WithToken(token =>
            {
                _jiraService.DeleteIssue(token, issue.Key.ToString());
            });
        }