Community moderators have prevented the ability to post new answers.
You can only get it through create meta. The /rest/api/2/issue/createmeta is not supported for now
final Iterable<CimProject> metadataProjects = issueClient.getCreateIssueMetadata(new GetCreateIssueMetadataOptionsBuilder().withExpandedIssueTypesFields().build()).claim()
// Now find your project -> issue type -> get allowed values from field info - I won't write a code as this would be long booring code ;) - just follow the path:
// CimProject#getIssueTypes -> CimIssueType#getFields().get("your_field_id") -> CimFieldInfo#getAllowedValues()
// getAllowedValues() will give you Iterable<Object>, so you need to cast the result to CustomFieldOption
A bit long and verbose example that handles all supported custom field types can be found here:
https://bitbucket.org/atlassian/jira-rest-java-client/src/bd758b52f53978033bdd0d8071edd75d7bdcc607/test/src/test/java/it/AsynchronousIssueRestClientCreateIssueTest.java#cl-795
check the document in https://docs.atlassian.com/jira/REST/latest/#d2e2561
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.