Created
August 16, 2017 22:49
-
-
Save Scuilion/7feaec2a987c53f2a45c096085e4ffde to your computer and use it in GitHub Desktop.
Cascading Select Creation Using Jira Rest Java Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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