I use rest api via jira-rest-java-client-core to create the ticket from a springboot rest service.
I have a custom field in the project of type - drop down list. But when I try to set it up with the below code , it is throwing error . What could be the reason for it
,,,,,,,,,,,,,,,,,,,,,
if (Utility.notEmpty(fixedInVersion)) {
issueBuilder.setFieldInput(new FieldInput("customfield_12426", fixedInVersion));
}
````````````````````````
IssueInput newIssue = issueBuilder.build();
BasicIssue issue = restClient.getIssueClient().createIssue(newIssue).claim();
Error : An exception occurred while generating the ticket: Ticket generation failed - Failed to create ticket with jira rest client[ErrorCollection{status=400, errors={customfield_12426=Could not find valid 'id' or 'value' in the Parent Option object.}, errorMessages=[]}]
rest - java - client - core version :
<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.2.0</version>
</dependency>