/// <summary> /// Gets the issues based on the specified filter, page, and number per page. /// </summary> /// <param name="projectId">The project id to apply the filter ON, or 0 for ALL projects.</param> /// <param name="filterId">Stored filter id to use.</param> /// <param name="pageNumber">Page number to get the issues for.</param> /// <param name="issuesPerPage">Number of issues per page.</param> /// <returns>An array of issues.</returns> public Issue[] GetIssues(int projectId, int filterId, int pageNumber, int issuesPerPage) { return(Issue.ConvertArray(this.mc.mc_filter_get_issues( this.session.Username, this.session.Password, projectId.ToString(), filterId.ToString(), pageNumber.ToString(), issuesPerPage.ToString()))); }
/// <summary> /// Gets the issues that are visible to the logged in user and belong to the project /// with the specified id. /// </summary> /// <param name="projectId">The project id or <see cref="Project.AllProjects"/> or <see cref="Project.DefaultProject"/>.</param> /// <param name="pageNumber">The page number (1-based)</param> /// <param name="issuesPerPage">The number of issues per page.</param> /// <returns>The array of issues.</returns> public Issue[] ProjectGetIssues(int projectId, int pageNumber, int issuesPerPage) { ValidateProjectId(projectId); if (pageNumber < 1) { throw new ArgumentOutOfRangeException("pageNumber"); } if (issuesPerPage < 1) { throw new ArgumentOutOfRangeException("issuesPerPage"); } return(Issue.ConvertArray(this.mc.mc_project_get_issues( this.session.Username, this.session.Password, projectId.ToString(), pageNumber.ToString(), issuesPerPage.ToString()))); }