Exemplo n.º 1
0
 public JiraIssue(JiraConnection conn, RemoteIssue issue)
     : base(issue, issue.id, issue.summary)
 {
     _connection = conn;
     _assignee   = _connection.GetUser(Object.assignee);
     _reporter   = _connection.GetUser(Object.reporter);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Establises a connection to the jira soap server
        /// </summary>
        public bool Connect(string url, string userName, string password, Converter <string, string> settings, out IIssuesServiceConnection connection)
        {
            try
            {
                connection = new JiraConnection(url, userName, password, settings);
                return(true);
            }
            catch (SoapException se)
            {
                if (se.Message.IndexOf("RemoteAuthenticationException", StringComparison.OrdinalIgnoreCase) > 0 ||
                    se.Message.IndexOf("Invalid username or password", StringComparison.OrdinalIgnoreCase) > 0)
                {
                    Log.Error(se, "Logon failed for user {0} at {1}", userName, url);
                    connection = null;
                    return(false);
                }

                throw;
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Establises a connection to the jira soap server
        /// </summary>
        public bool Connect(string url, string userName, string password, Converter<string, string> settings, out IIssuesServiceConnection connection)
        {
            try
            {
                connection = new JiraConnection(url, userName, password, settings);
                return true;
            }
            catch (SoapException se)
            {
                if (se.Message.IndexOf("RemoteAuthenticationException", StringComparison.OrdinalIgnoreCase) > 0 ||
                    se.Message.IndexOf("Invalid username or password", StringComparison.OrdinalIgnoreCase) > 0)
                {
                    Log.Error(se, "Logon failed for user {0} at {1}", userName, url);
                    connection = null;
                    return false;
                }

                throw;
            }
        }
Exemplo n.º 4
0
 public JiraAllFilter(JiraConnection conn)
     : base(null, "[Search All Issues]", "[Search All Issues]")
 {
     _connection = conn;
 }
Exemplo n.º 5
0
 public JiraFilter(JiraConnection conn, RemoteFilter filter)
     : base(filter, filter.id, filter.name)
 {
     _connection = conn;
 }