Skip to content

Instantly share code, notes, and snippets.

@Scuilion
Created August 16, 2017 22:49
Show Gist options
  • Save Scuilion/7feaec2a987c53f2a45c096085e4ffde to your computer and use it in GitHub Desktop.
Save Scuilion/7feaec2a987c53f2a45c096085e4ffde to your computer and use it in GitHub Desktop.
Cascading Select Creation Using Jira Rest Java Client
final IssueInputBuilder issueInputBuilder = new IssueInputBuilder("SUP", 10900L, "summary");
final Map<String, Object> childField = new HashMap<>();
childField.put("value", "Outage");
final Map<String, Object> customField = new HashMap<>();
customField.put("value", "Customer Call");
customField.put("child", new ComplexIssueInputFieldValue(childField));
issueInputBuilder.setFieldInput(new FieldInput("customfield_12345", new ComplexIssueInputFieldValue(customField)));
final IssueInput libIssueInput = issueInputBuilder.build();
final IssueRestClient issueClient = restClient.getIssueClient();
final BasicIssue issueResp = issueClient.createIssue(libIssueInput).claim();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment