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>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.