//last issue to create will have a non existing project - to simulate creation error
if (summariesWithError.contains(summary)) {
currentProjectKey = "FAKE_KEY";
}
final IssueInputBuilder issueInputBuilder =
new IssueInputBuilder(currentProjectKey, issueType.getId(), summary)
.setDescription(description)
.setAssignee(assignee)
.setAffectedVersionsNames(affectedVersionsNames)
.setFixVersionsNames(fixVersionsNames)
.setComponents(component)
.setDueDate(dueDate)
.setPriority(priority)
.setFieldValue("parent", ComplexIssueInputFieldValue.with("key", "TST-1"));
issuesToCreate.add(issueInputBuilder.build());
}
assertEquals(summaries.size(), issuesToCreate.size());
// create
final BulkOperationResult<BasicIssue> createdIssues = issueClient.createIssues(issuesToCreate).claim();