Adding single select custom filed

I created text area custom field using following code

testStep = customFieldManager
.createCustomField(
“Test Step”,
“Test steps for execution”,
this.customFieldManager
.getCustomFieldType(“com.atlassian.jira.plugin.system.customfieldtypes:textarea”),
this.customFieldManager
.getCustomFieldSearcher(“com.atlassian.jira.plugin.system.customfieldtypes:textsearcher”),
contexts, issueTypes);

But i am out of ideas for single select filed what will be the key value and how i can add options

com.atlassian.jira.plugin.system.customfieldtypes:textarea

in place of textarea what i need to add for single select and how to add options to this select option

Thanks

Hi @mailtomano,

Though this might be an old content, the algorithm and classes used would still be the same for newer version like the CustomFieldConstants, etc. Or if you’re trying to update the select, kindly see this.

Cheers,
Anne Calantog