Exemplo n.º 1
0
        public Issue GetJiraIssue(string jiraRef)
        {
            try
            {
                CheckAndConnectJira();
                var issue = jira.GetIssue(jiraRef);

                recentJiraCollection.AddRecentJira(issue);
                return(issue);
            }
            catch (Exception ex)
            {
                recentJiraCollection.Remove(jiraRef);
                throw new NoResultsFoundException($"Unable to locate Jira {jiraRef}", ex);
            }
        }
Exemplo n.º 2
0
        public Issue GetJiraIssue(string jiraRef, bool includeWorkLogs = false)
        {
            try
            {
                CheckAndConnectJira();
                var issue = includeWorkLogs ? jira.GetIssueWithWorklogs(jiraRef) : jira.GetIssue(jiraRef);

                recentJiraCollection.AddRecentJira(issue);
                return(issue);
            }
            catch (Exception ex)
            {
                recentJiraCollection.Remove(jiraRef);
                throw new NoResultsFoundException(string.Format("Unable to locate Jira {0}", jiraRef), ex);
            }
        }