Skip to content

Commit 1ca72f3

Browse files
authored
Added moveIssue(projectId, issueId, toProjectId)
1 parent e02b03c commit 1ca72f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/gitlab/api/GitlabAPI.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,6 +1389,13 @@ public GitlabIssue createIssue(int projectId, int assigneeId, int milestoneId, S
13891389

13901390
return requestor.to(tailUrl, GitlabIssue.class);
13911391
}
1392+
1393+
public GitlabIssue moveIssue(Integer projectId, Integer issueId, Integer toProjectId) throws IOException {
1394+
String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL + "/" + issueId + "/move";
1395+
GitlabHTTPRequestor requestor = dispatch();
1396+
requestor.with("to_project_id", toProjectId);
1397+
return requestor.to(tailUrl, GitlabIssue.class);
1398+
}
13921399

13931400
public GitlabIssue editIssue(int projectId, int issueId, int assigneeId, int milestoneId, String labels,
13941401
String description, String title, GitlabIssue.Action action) throws IOException {

0 commit comments

Comments
 (0)