diff --git a/gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java b/gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java index 452b967e..313d476a 100644 --- a/gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java +++ b/gitlab4j-api/src/main/java/org/gitlab4j/api/IssuesApi.java @@ -1326,4 +1326,27 @@ public Issue moveIssue(Object projectIdOrPath, Long issueIid, Object toProjectId "move"); return (response.readEntity(Issue.class)); } + + /** + * Get list of merge requests related to an issue. + * + *
GitLab Endpoint: GET /projects/:id/issues/:issue_iid/related_merge_requests
+ *
+ * @param projectIdOrPath the project in the form of an Long(ID), String(path), or Project instance
+ * @param issueIid the IID of the issue to get the related merge requests for
+ * @return a List containing all related merge requests for the specified issue
+ * @throws GitLabApiException if any exception occurs
+ */
+ public List