[UI Modification] Set Multi-Select Field Value by Label Instead of ID

Hello,

I’m trying to set a custom field of type Multiple Select List using UI modifications in Forge.

JavaScript

field.setValue(['1001']); // IDs

Is there a way to set the value using the label instead?

Thanks,
Ibrahim

Hello @IbrahimItani

maybe someone will correct me, but unfortunately no. In Forge UI Modifications you cannot set a multiple select custom field by label directly; you must use the option ID.

To “use a label”, you first need to look up its corresponding option ID (via the Jira REST API or a static mapping) and then call field.setValue([id]) as you’re already doing.

Hello @MartinFischer

Thank you for the reply. That aligns with my expectations. I was hoping there might be a workaround, as the Get options API doesn’t support querying by label—you have to retrieve all options and match the labels client-side.

1 Like