public JiraIssue(JiraConnection conn, RemoteIssue issue) : base(issue, issue.id, issue.summary) { _connection = conn; _assignee = _connection.GetUser(Object.assignee); _reporter = _connection.GetUser(Object.reporter); }
/// <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; } }
/// <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; } }
public JiraAllFilter(JiraConnection conn) : base(null, "[Search All Issues]", "[Search All Issues]") { _connection = conn; }
public JiraFilter(JiraConnection conn, RemoteFilter filter) : base(filter, filter.id, filter.name) { _connection = conn; }