/// <summary>
        /// Gets all the "Open" and "In Progress" issues of the selected project assigned to the current user of JiraConnector
        /// </summary>
        /// <param name="projectKey">The project key as stated in the Jira Project Configuration</param>
        /// <returns>A generic list of <c>Issue</c> entities </returns>
        public List <Issue> GetOpenIssuesFromProjectAssignedToCurrentUser(string projectKey)
        {
            List <Issue> issues;

            //The project id is needed in order to create te query string, so we need to get it from the project key
            string projectId = this.GetProjectIdFromProjectKey(projectKey);

            //Creates the appropiate url for use in a XML-HTTP request to JIRA.
            string url = JiraHttpHelper.GetJiraRpcUrlForFilter(projectId, JiraIssueAsignee.CURRENT_USER, JiraIssueStatus.UNRESOLVED);

            //Create the request and obtain the response for the XML-HTTP query to JIRA.
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            HttpWebResponse response = (HttpWebResponse)request.GetResponse();

            Stream resStream = response.GetResponseStream();

            //Parsing of the XML document response containing the list of issues we needed
            issues = JiraXMLHelper.GetIssueListFromXmlStream(resStream);

            //Some HTML Decoding for the issue description...
            foreach (Issue i in issues)
            {
                TextWriter output = new StringWriter();
                HttpUtility.HtmlDecode(i.Description, output);
                i.Description = output.ToString();
                if (i.Description.Contains("<br/>"))
                {
                    i.Description = i.Description.Replace("<br/>", String.Empty);
                }
            }
            return(issues);
        }
        /// <summary>
        /// This method allows the user to log work done on an issue.
        /// </summary>
        /// <param name="issueId">The ID of the selected issue to log work to</param>
        /// <param name="workDone">A string representing the ammount of work done as entered by the user</param>
        public void LogWorkDone(string issueId, string workDone, string workDescription)
        {
            //Creates the appropiate url for use in a XML-HTTP request to JIRA.
            string url = JiraHttpHelper.GetJiraRpcUrlForLoggingWorkDone(issueId, workDone, workDescription);

            //Create the request and obtain the response for the XML-HTTP query to JIRA.
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            request.GetResponse();
        }
        /// <summary>
        /// Gets all the issues of the selected project assigned to the current user of JiraConnector
        /// </summary>
        /// <param name="projectKey">The project key as stated in the Jira Project Configuration</param>
        /// <returns>A generic list of <c>Issue</c> entities </returns>
        public List <Issue> GetAllIssuesFromProjectAssignedToCurrentUser(string projectKey)
        {
            List <Issue> issues;

            //The project id is needed in order to create te query string, so we need to get it from the project key
            string projectId = this.GetProjectIdFromProjectKey(projectKey);

            //Creates the appropiate url for use in a XML-HTTP request to JIRA.
            string url = JiraHttpHelper.GetJiraRpcUrlForFilter(projectId, JiraIssueAsignee.CURRENT_USER, JiraIssueStatus.ANY);

            //Create the request and obtain the response for the XML-HTTP query to JIRA.
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);

            HttpWebResponse response = (HttpWebResponse)request.GetResponse();

            Stream resStream = response.GetResponseStream();

            //Parsing of the XML document response containing the list of issues we needed
            issues = JiraXMLHelper.GetIssueListFromXmlStream(resStream);

            return(issues);
        }