Ejemplo 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);
            }
        }
Ejemplo 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);
            }
        }
Ejemplo n.º 3
0
        public Issue GetIssue(String key)
		{
			Issue issue = _client.GetIssue(key);
            if(String.IsNullOrEmpty(issue.Key))
            {
                return null;
            }
			if (issue != null)
			{
				issue.SetJira(this);
			}

			return issue;
		}