Skip to content

Commit

Permalink
Merge pull request #5 from gdgib/G2-1630-EpicCreation
Browse files Browse the repository at this point in the history
G2-1630 Epic creation
  • Loading branch information
gdgib authored Aug 31, 2024
2 parents 50d16cb + 1b0a9a3 commit ef06f0b
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,14 @@ protected List<String> implementChanges(Changes changes) throws IOException, URI
for (CreateIssue issue : changes.getIssues()) {
final IssueInputBuilder builder = new IssueInputBuilder(issue.getProject(), 0l);
builder.setFieldInput(new FieldInput(IssueFieldId.ISSUE_TYPE_FIELD, ComplexIssueInputFieldValue.with("name", issue.getType())));
if (issue.getEpic() != null) builder.setFieldInput(new FieldInput("customfield_10000", issue.getEpic()));

if ("Epic".equals(issue.getType())) {
// Name epics the same as their summary
builder.setFieldInput(new FieldInput("customfield_10002", issue.getSummary()));
} else {
if (issue.getEpic() != null) builder.setFieldInput(new FieldInput("customfield_10000", issue.getEpic()));
}

if (issue.getSecurityLevel() != null) builder.setFieldInput(new FieldInput("security", ComplexIssueInputFieldValue.with("name", issue.getSecurityLevel())));
builder.setSummary(issue.getSummary());
builder.setDescription(issue.getDescription());
Expand Down

0 comments on commit ef06f0b

Please sign in to comment.