I hope I’m missing something here – I would like to create a jira:customField module in my Forge app that has values of type strings, but represented as a select/dropdown with a fixed set of possible values rather than a freeform text field. The only way I can see right now is by building my own UIKit components for view and edit, which seems surprising.
Although I can see why this is maybe not that common of a case, where most folks wanting a dropdown in an app will likely want the values to be dynamic and/or render something richer than just their key/value. In my case, this is for an in-house app where the strict set of possible values influences other parts of the app – so I want the field to be controlled by my app, but if i can avoid ~50 lines of boilerplate-ish react code, I’d love to.
Any ideas ? Thanks!
Hello @GregoryJoseph,
Why creating a Forge Custom Field when a standard Jira Custom Field has all the features you want ? Indeed you need to provide the rendering methods for a Forge Custom Field.
You can rely on standard Jira Custom Field and set it up from your Forge app using the Jira REST API. That’s a regular field and the rendering is done by Jira itself.
Hope that helps.
Hi @FabienLydoire – i thought I’d responded to this, but evidently I hadn’t. Here’s broadly where I stand with this:
Yep I could rely on a standard custom field for this, but unless I’m mistaken (which would be great, in this case), that also means the field is not “locked”, so any sufficiently-permissioned user could change the field’s values, rename or remove it. I suppose I could also use API to verify the state of the field (e.g on every deploy/install), but i wouldn’t mind replacing all these API calls by 3 lines in my manifest.yml 
While I was crawling the API docs for @FabienLydoire 's suggestion, I stumbled upon this API: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issue-custom-field-options--apps-/#api-rest-api-2-field-fieldkey-option-post
Creates an option for a select list issue field.
Note that this operation only works for issue field select list options added by Connect apps […]
“issue field select list options added by Connect apps” sound like I’m after, but how does one create such a field?
duh, pebkac - I read “Connect” and thought “Forge”.
Meanwhile, I’ve found https://ecosystem.atlassian.net/browse/FRGE-1649, so I guess I’ll go and vote for this. Curious as to how/why this was a thing in Connect but not in Forge.