Skip to content

Commit 61db87e

Browse files
authored
Merge pull request timols#153 from CWolff92/master
Added getNote(issue, noteId)
2 parents 1e21046 + 1ca72f3 commit 61db87e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

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

Lines changed: 14 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 {
@@ -1416,6 +1423,13 @@ private void applyIssue(GitlabHTTPRequestor requestor, int projectId,
14161423
requestor.with("assignee_id", assigneeId == -1 ? 0 : assigneeId);
14171424
}
14181425
}
1426+
1427+
public GitlabNote getNote(GitlabIssue issue, Integer noteId) throws IOException {
1428+
String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() +
1429+
GitlabIssue.URL + "/" + issue.getId() +
1430+
GitlabNote.URL + "/" + noteId;
1431+
return retrieve().to(tailUrl, GitlabNote.class);
1432+
}
14191433

14201434
public List<GitlabNote> getNotes(GitlabIssue issue) throws IOException {
14211435
String tailUrl = GitlabProject.URL + "/" + issue.getProjectId() + GitlabIssue.URL + "/"

0 commit comments

Comments
 (0)