public GitlabIssue createIssue(int projectId, int assigneeId, int milestoneId, String labels,
String description, String title) throws IOException {
String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL;
GitlabHTTPRequestor requestor = dispatch().with("title", title)
.with("description", description)
<BUG>.with("labels", labels);
if(assigneeId != 0) {
requestor.with("assignee_id", assigneeId);
}
if(milestoneId != 0) {
requestor.with("milestone_id", milestoneId);
}</BUG>
return requestor.to(tailUrl, GitlabIssue.class);

public GitlabIssue createIssue(int projectId, int assigneeId, int milestoneId, String labels,
String description, String title) throws IOException {
String tailUrl = GitlabProject.URL + "/" + projectId + GitlabIssue.URL;
GitlabHTTPRequestor requestor = dispatch().with("title", title)
.with("description", description)
.with("labels", labels)
.with("assignee_id", assigneeId)
.with("milestone_id", milestoneId);
return requestor.to(tailUrl, GitlabIssue.class);
