Currently, I’m developing a custom field type forge app.
I have selects at my configure custom field page.
The problem is when I select an item at Select and press save button, I can’t see what did I select at my next time visiting configure custom field page.
Hey @kkercz ,
This works great for the default value, however, through to this solution it is not possible to select None of the values. Even if the Select block does not have the parameter isRequired set to true.
But the values of the field only gets saved if they are edited at least once. If I would add a custom field manually via the Jira config, I would edit the context and add a default value there - but that seems to work differently as if it is added via Forge.
Is there a way to get these values recognized as default values in the case if its added via the Forge manifest?
Hi @DanielKleissl
Thanks for bringing this issue to our attention. We’ll investigate the issue with UI Kit and see if we can change it so the default values would be submitted on create issue. Here is a public issue we created for that: [FRGE-977] - Ecosystem Jira
For now the other solution I have for you is to use custom UI and view.submit method. In custom UI you can decide on your own when you’re making a submit. That means you could write code to submit the default value on mount so it won’t require any user interaction with the field. E.g. in react it would look like:
Thanks for creating the Issue. We are already discussing internally to change the Custom Field Edit to a Custom UI element, so that would be a, longterm, fix.
But if we decide to stay with UI Kit that would be a great change.