Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to define Options for a Select custom field via the manifest?

Sean Curtis [Heaps Good Software] August 13, 2023

I'm trying to just create my own simple custom field and by far the simplest way has been just using the manifest. I don't need any fancy view/edit screens, but I DO want to specify some specific options instead of the user being able to create their own options like how the Labels field works.

I can't see any way to define what options exist in the custom field via the manifest. Do I need to use the REST endpoints instead? I feel like that is overkill but can't really find any docs/examples on doing this (examples for using each field type would be really handy).

It'd be even better if we could also define OptionGroups. Essentially I want to create a CF that is the equivalent of this native element:

<select multiple>
  <optgroup label="Operating System">
    <option value="0">Windows</option>
    <option value="1">Mac</option>
  </optgroup>
  <optgroup label="Software">
    <option value="2">Jira</option>
    <option value="3">Confluence</option>
  </optgroup>
</select>

Note:

I did explore UI Kit but that (and Custom UI) open the Edit view in a modal and the field width is really narrow (320px I think) with no option to make it wider (we can make the modal wider, but there's some silly div wrapping it with a hard-coded width on it).

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2023

Welcome to the Atlassian Community!

No, the options have to be defined on the back-end, inside Jira, via the admin -> custom fields -> context

Sean Curtis [Heaps Good Software] August 14, 2023

I did try that but it seemed to all be disabled. Is setting those options only for fields created with Jira as opposed to ones defined in a plugin?

Sean Curtis [Heaps Good Software] August 14, 2023

Interesting that we can define them when using UI Kit or Custom UI, but not via the manifest, even though we have access to things like `searchSuggestions`.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events