Package org.gitlab4j.api
Class IssuesApi
- java.lang.Object
-
- org.gitlab4j.api.AbstractApi
-
- org.gitlab4j.api.IssuesApi
-
- All Implemented Interfaces:
Constants
public class IssuesApi extends AbstractApi implements Constants
This class provides an entry point to all the GitLab API Issue calls.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gitlab4j.api.Constants
Constants.ActionType, Constants.ApplicationScope, Constants.ArchiveFormat, Constants.CommitBuildState, Constants.Encoding, Constants.EpicOrderBy, Constants.GroupOrderBy, Constants.ImpersonationState, Constants.IssueOrderBy, Constants.IssueScope, Constants.IssueState, Constants.JobScope, Constants.LineType, Constants.MergeRequestOrderBy, Constants.MergeRequestScope, Constants.MergeRequestState, Constants.MilestoneState, Constants.PipelineOrderBy, Constants.PipelineScope, Constants.ProjectOrderBy, Constants.SortOrder, Constants.StateEvent, Constants.TargetType, Constants.TokenType
-
-
Field Summary
-
Fields inherited from interface org.gitlab4j.api.Constants
NEXT_PAGE_HEADER, PAGE_HEADER, PAGE_PARAM, PER_PAGE, PER_PAGE_PARAM, PREV_PAGE_HEADER, TOTAL_HEADER, TOTAL_PAGES_HEADER
-
-
Method Summary
Modifier and Type Method Description TimeStats
addSpentTime(Object projectIdOrPath, Integer issueIid, int duration)
Adds spent time for this issueTimeStats
addSpentTime(Object projectIdOrPath, Integer issueIid, String duration)
Adds spent time for this issueTimeStats
addSpentTime(Object projectIdOrPath, Integer issueIid, Duration duration)
Adds spent time for this issueIssue
closeIssue(Object projectIdOrPath, Integer issueIid)
Closes an existing project issue.Issue
createIssue(Object projectIdOrPath, String title, String description)
Create an issue for the project.Issue
createIssue(Object projectIdOrPath, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Date createdAt, Date dueDate, Integer mergeRequestToResolveId, Integer discussionToResolveId)
Create an issue for the project.void
deleteIssue(Object projectIdOrPath, Integer issueIid)
Delete an issue.TimeStats
estimateTime(Object projectIdOrPath, Integer issueIid, int duration)
Sets an estimated time of work in this issueTimeStats
estimateTime(Object projectIdOrPath, Integer issueIid, String duration)
Sets an estimated time of work in this issueTimeStats
estimateTime(Object projectIdOrPath, Integer issueIid, Duration duration)
Sets an estimated time of work in this issueList<MergeRequest>
getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid)
Get list containing all the merge requests that will close issue when merged.Pager<MergeRequest>
getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid, int itemsPerPage)
Get a Pager containing all the merge requests that will close issue when merged.List<MergeRequest>
getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid, int page, int perPage)
Get list containing all the merge requests that will close issue when merged.Stream<MergeRequest>
getClosedByMergeRequestsStream(Object projectIdOrPath, Integer issueIid)
Get list containing all the merge requests that will close issue when merged.Issue
getIssue(Object projectIdOrPath, Integer issueIid)
Get a single project issue.List<Issue>
getIssues()
Get all issues the authenticated user has access to.Pager<Issue>
getIssues(int itemsPerPage)
Get a Pager of all issues the authenticated user has access to.List<Issue>
getIssues(int page, int perPage)
Get all issues the authenticated user has access to using the specified page and per page setting.List<Issue>
getIssues(Object projectIdOrPath)
Get a list of project's issues.Pager<Issue>
getIssues(Object projectIdOrPath, int itemsPerPage)
Get a Pager of project's issues.List<Issue>
getIssues(Object projectIdOrPath, int page, int perPage)
Get a list of project's issues using the specified page and per page settings.List<Issue>
getIssues(Object projectIdOrPath, IssueFilter filter)
Get a list of project's issues.Pager<Issue>
getIssues(Object projectIdOrPath, IssueFilter filter, int itemsPerPage)
Get a list of project's issues.List<Issue>
getIssues(Object projectIdOrPath, IssueFilter filter, int page, int perPage)
Get a list of project's issues.List<Issue>
getIssues(IssueFilter filter)
Get all issues the authenticated user has access to.Pager<Issue>
getIssues(IssueFilter filter, int itemsPerPage)
Get all issues the authenticated user has access to.List<Issue>
getIssues(IssueFilter filter, int page, int perPage)
Get all issues the authenticated user has access to.Stream<Issue>
getIssuesStream()
Get all issues the authenticated user has access to as a Stream.Stream<Issue>
getIssuesStream(Object projectIdOrPath)
Get a Stream of project's issues.Stream<Issue>
getIssuesStream(Object projectIdOrPath, IssueFilter filter)
Get a Stream of project's issues.Stream<Issue>
getIssuesStream(IssueFilter filter)
Get all issues the authenticated user has access to.Optional<Issue>
getOptionalIssue(Object projectIdOrPath, Integer issueIid)
Get a single project issue as an Optional instance.Optional<TimeStats>
getOptionalTimeTrackingStats(Object projectIdOrPath, Integer issueIid)
Get time tracking stats as an Optional instanceTimeStats
getTimeTrackingStats(Object projectIdOrPath, Integer issueIid)
Get time tracking stats.TimeStats
resetEstimatedTime(Object projectIdOrPath, Integer issueIid)
Resets the estimated time for this issue to 0 seconds.TimeStats
resetSpentTime(Object projectIdOrPath, Integer issueIid)
Resets the total spent time for this issue to 0 seconds.Issue
updateIssue(Object projectIdOrPath, Integer issueIid, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Constants.StateEvent stateEvent, Date updatedAt, Date dueDate)
Updates an existing project issue.-
Methods inherited from class org.gitlab4j.api.AbstractApi
addFormParam, addFormParam, delete, delete, get, get, getApiClient, getApiVersion, getDefaultPerPage, getDefaultPerPageParam, getDefaultPerPageParam, getGroupIdOrPath, getPageQueryParams, getPageQueryParams, getPerPageQueryParam, getProjectIdOrPath, getUserIdOrUsername, getWithAccepts, handle, head, isApiVersion, post, post, post, post, post, put, put, putUpload, putUpload, putWithFormData, upload, upload, upload, urlEncode, validate
-
-
-
-
Constructor Detail
-
IssuesApi
public IssuesApi(GitLabApi gitLabApi)
-
-
Method Detail
-
getIssues
public List<Issue> getIssues() throws GitLabApiException
Get all issues the authenticated user has access to. Only returns issues created by the current user.GitLab Endpoint: GET /issues
- Returns:
- a list of user's issues
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(int page, int perPage) throws GitLabApiException
Get all issues the authenticated user has access to using the specified page and per page setting. Only returns issues created by the current user.GitLab Endpoint: GET /issues
- Parameters:
page
- the page to getperPage
- the number of issues per page- Returns:
- the list of issues in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public Pager<Issue> getIssues(int itemsPerPage) throws GitLabApiException
Get a Pager of all issues the authenticated user has access to. Only returns issues created by the current user.
rGitLab Endpoint: GET /issues
- Parameters:
itemsPerPage
- the number of issues per page- Returns:
- the list of issues in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getIssuesStream
public Stream<Issue> getIssuesStream() throws GitLabApiException
Get all issues the authenticated user has access to as a Stream. Only returns issues created by the current user.GitLab Endpoint: GET /issues
- Returns:
- a Stream of user's issues
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(Object projectIdOrPath) throws GitLabApiException
Get a list of project's issues. Only returns the first pageGitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance- Returns:
- a list of project's issues
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(Object projectIdOrPath, int page, int perPage) throws GitLabApiException
Get a list of project's issues using the specified page and per page settings.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancepage
- the page to getperPage
- the number of issues per page- Returns:
- the list of issues in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public Pager<Issue> getIssues(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException
Get a Pager of project's issues.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceitemsPerPage
- the number of issues per page- Returns:
- the list of issues in the specified range
- Throws:
GitLabApiException
- if any exception occurs
-
getIssuesStream
public Stream<Issue> getIssuesStream(Object projectIdOrPath) throws GitLabApiException
Get a Stream of project's issues. Only returns the first pageGitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance- Returns:
- a Stream of project's issues
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(Object projectIdOrPath, IssueFilter filter) throws GitLabApiException
Get a list of project's issues.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancefilter
-IssueFilter
a IssueFilter instance with the filter settings- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(Object projectIdOrPath, IssueFilter filter, int page, int perPage) throws GitLabApiException
Get a list of project's issues.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancefilter
-IssueFilter
a IssueFilter instance with the filter settings.page
- the page to get.perPage
- the number of projects per page.- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public Pager<Issue> getIssues(Object projectIdOrPath, IssueFilter filter, int itemsPerPage) throws GitLabApiException
Get a list of project's issues.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancefilter
-IssueFilter
a IssueFilter instance with the filter settings.itemsPerPage
- the number of Project instances that will be fetched per page.- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssuesStream
public Stream<Issue> getIssuesStream(Object projectIdOrPath, IssueFilter filter) throws GitLabApiException
Get a Stream of project's issues.GitLab Endpoint: GET /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancefilter
-IssueFilter
a IssueFilter instance with the filter settings- Returns:
- a Stream of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(IssueFilter filter) throws GitLabApiException
Get all issues the authenticated user has access to. By default it returns only issues created by the current user.GitLab Endpoint: GET /issues
- Parameters:
filter
-IssueFilter
a IssueFilter instance with the filter settings- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public List<Issue> getIssues(IssueFilter filter, int page, int perPage) throws GitLabApiException
Get all issues the authenticated user has access to. By default it returns only issues created by the current user.GitLab Endpoint: GET /issues
- Parameters:
filter
-IssueFilter
a IssueFilter instance with the filter settings.page
- the page to get.perPage
- the number of projects per page.- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssues
public Pager<Issue> getIssues(IssueFilter filter, int itemsPerPage) throws GitLabApiException
Get all issues the authenticated user has access to. By default it returns only issues created by the current user.GitLab Endpoint: GET /issues
- Parameters:
filter
-IssueFilter
a IssueFilter instance with the filter settings.itemsPerPage
- the number of Project instances that will be fetched per page.- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssuesStream
public Stream<Issue> getIssuesStream(IssueFilter filter) throws GitLabApiException
Get all issues the authenticated user has access to. By default it returns only issues created by the current user.GitLab Endpoint: GET /issues
- Parameters:
filter
-IssueFilter
a IssueFilter instance with the filter settings- Returns:
- the list of issues in the specified range.
- Throws:
GitLabApiException
- if any exception occurs
-
getIssue
public Issue getIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Get a single project issue.GitLab Endpoint: GET /projects/:id/issues/:issue_iid
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- the specified Issue instance
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalIssue
public Optional<Issue> getOptionalIssue(Object projectIdOrPath, Integer issueIid)
Get a single project issue as an Optional instance.GitLab Endpoint: GET /projects/:id/issues/:issue_iid
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- the specified Issue as an Optional instance
-
createIssue
public Issue createIssue(Object projectIdOrPath, String title, String description) throws GitLabApiException
Create an issue for the project.GitLab Endpoint: POST /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancetitle
- the title of an issue, requireddescription
- the description of an issue, optional- Returns:
- an instance of Issue
- Throws:
GitLabApiException
- if any exception occurs
-
createIssue
public Issue createIssue(Object projectIdOrPath, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Date createdAt, Date dueDate, Integer mergeRequestToResolveId, Integer discussionToResolveId) throws GitLabApiException
Create an issue for the project.GitLab Endpoint: POST /projects/:id/issues
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instancetitle
- the issue title of an issue, requireddescription
- the description of an issue, optionalconfidential
- set the issue to be confidential, default is false, optionalassigneeIds
- the IDs of the users to assign issue, optionalmilestoneId
- the ID of a milestone to assign issue, optionallabels
- comma-separated label names for an issue, optionalcreatedAt
- the date the issue was created at, optionaldueDate
- the due date, optionalmergeRequestToResolveId
- the IID of a merge request in which to resolve all issues. This will fill the issue with a default description and mark all discussions as resolved. When passing a description or title, these values will take precedence over the default values. OptionaldiscussionToResolveId
- the ID of a discussion to resolve. This will fill in the issue with a default description and mark the discussion as resolved. Use in combination with merge_request_to_resolve_discussions_of. Optional- Returns:
- an instance of Issue
- Throws:
GitLabApiException
- if any exception occurs
-
closeIssue
public Issue closeIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Closes an existing project issue.GitLab Endpoint: PUT /projects/:id/issues/:issue_iid
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredissueIid
- the issue IID to update, required- Returns:
- an instance of the updated Issue
- Throws:
GitLabApiException
- if any exception occurs
-
updateIssue
public Issue updateIssue(Object projectIdOrPath, Integer issueIid, String title, String description, Boolean confidential, List<Integer> assigneeIds, Integer milestoneId, String labels, Constants.StateEvent stateEvent, Date updatedAt, Date dueDate) throws GitLabApiException
Updates an existing project issue. This call can also be used to mark an issue as closed.GitLab Endpoint: PUT /projects/:id/issues/:issue_iid
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredissueIid
- the issue IID to update, requiredtitle
- the title of an issue, optionaldescription
- the description of an issue, optionalconfidential
- set the issue to be confidential, default is false, optionalassigneeIds
- the IDs of the users to assign issue, optionalmilestoneId
- the ID of a milestone to assign issue, optionallabels
- comma-separated label names for an issue, optionalstateEvent
- the state event of an issue. Set close to close the issue and reopen to reopen it, optionalupdatedAt
- sets the updated date, requires admin or project owner rights, optionaldueDate
- the due date, optional- Returns:
- an instance of the updated Issue
- Throws:
GitLabApiException
- if any exception occurs
-
deleteIssue
public void deleteIssue(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Delete an issue.GitLab Endpoint: DELETE /projects/:id/issues/:issue_iid
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredissueIid
- the internal ID of a project's issue- Throws:
GitLabApiException
- if any exception occurs
-
estimateTime
public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, int duration) throws GitLabApiException
Sets an estimated time of work in this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredissueIid
- the internal ID of a project's issueduration
- estimated time in seconds- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
estimateTime
public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, String duration) throws GitLabApiException
Sets an estimated time of work in this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instance, requiredissueIid
- the internal ID of a project's issueduration
- Human readable format, e.g. 3h30m- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
estimateTime
public TimeStats estimateTime(Object projectIdOrPath, Integer issueIid, Duration duration) throws GitLabApiException
Sets an estimated time of work in this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/time_estimate
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issueduration
- set the estimate of time to this duration- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
resetEstimatedTime
public TimeStats resetEstimatedTime(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Resets the estimated time for this issue to 0 seconds.GitLab Endpoint: POST /projects/:id/issues/:issue_iid/reset_time_estimate
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
addSpentTime
public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, int duration) throws GitLabApiException
Adds spent time for this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issueduration
- the duration in seconds- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
addSpentTime
public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, String duration) throws GitLabApiException
Adds spent time for this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issueduration
- Human readable format, e.g. 3h30m- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
addSpentTime
public TimeStats addSpentTime(Object projectIdOrPath, Integer issueIid, Duration duration) throws GitLabApiException
Adds spent time for this issueGitLab Endpoint: POST /projects/:id/issues/:issue_iid/add_spent_time
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issueduration
- the duration of time spent- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
resetSpentTime
public TimeStats resetSpentTime(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Resets the total spent time for this issue to 0 seconds.GitLab Endpoint: POST /projects/:id/issues/:issue_iid/reset_spent_time
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- a TimeSTats instance
- Throws:
GitLabApiException
- if any exception occurs
-
getTimeTrackingStats
public TimeStats getTimeTrackingStats(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Get time tracking stats.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/time_stats
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- a TimeStats instance
- Throws:
GitLabApiException
- if any exception occurs
-
getOptionalTimeTrackingStats
public Optional<TimeStats> getOptionalTimeTrackingStats(Object projectIdOrPath, Integer issueIid)
Get time tracking stats as an Optional instanceGitLab Endpoint: GET /projects/:id/issues/:issue_iid/time_stats
- Parameters:
projectIdOrPath
- the project in the form of an Integer(ID), String(path), or Project instanceissueIid
- the internal ID of a project's issue- Returns:
- a TimeStats as an Optional instance
-
getClosedByMergeRequests
public List<MergeRequest> getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Get list containing all the merge requests that will close issue when merged.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/closed_by
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the internal ID of a project's issue- Returns:
- a List containing all the merge requests what will close the issue when merged.
- Throws:
GitLabApiException
- if any exception occurs
-
getClosedByMergeRequests
public List<MergeRequest> getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid, int page, int perPage) throws GitLabApiException
Get list containing all the merge requests that will close issue when merged.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/closed_by
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the internal ID of a project's issuepage
- the page to getperPage
- the number of issues per page- Returns:
- a List containing all the merge requests what will close the issue when merged.
- Throws:
GitLabApiException
- if any exception occurs
-
getClosedByMergeRequests
public Pager<MergeRequest> getClosedByMergeRequests(Object projectIdOrPath, Integer issueIid, int itemsPerPage) throws GitLabApiException
Get a Pager containing all the merge requests that will close issue when merged.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/closed_by
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the internal ID of a project's issueitemsPerPage
- the number of Issue instances that will be fetched per page- Returns:
- a Pager containing all the issues that would be closed by merging the provided merge request
- Throws:
GitLabApiException
- if any exception occurs
-
getClosedByMergeRequestsStream
public Stream<MergeRequest> getClosedByMergeRequestsStream(Object projectIdOrPath, Integer issueIid) throws GitLabApiException
Get list containing all the merge requests that will close issue when merged.GitLab Endpoint: GET /projects/:id/issues/:issue_iid/closed_by
- Parameters:
projectIdOrPath
- id, path of the project, or a Project instance holding the project ID or pathissueIid
- the internal ID of a project's issue- Returns:
- a List containing all the merge requests what will close the issue when merged.
- Throws:
GitLabApiException
- if any exception occurs
-
-