My custom developed fields are not visible on JSD Portal: "This field type cannot be shown - you must provide a preset value"

We have developed some custom fields, but they are not visible on JSM Portal. They are very basic select fields. When I try to add them, they are added to “Hidden fields with preset values” section. I could not find out why. Do you know what should I do to make them display on customer portal?

1 Like

Hi @denizoguz I’m having the exact same issue, did you find a solution?

My custom developed field also defaults to the “Hidden” section of the request type.

I define my class like this:
public class AddressCustomField extends AbstractSingleFieldType<String> {}

It works on the standard project but on the portal, I get this error:
Screen Shot 2021-12-18 at 2.02.14 PM

Hi @splinterface,
Unfortunately I couldn’t. Please let me know if you find a solution.

Hi @denizoguz,
I was able to get it working as a field on a Portal by defining the custom field as:

public class JiraCustomField extends GenericTextCFType {

public JiraCustomField(
        @JiraImport CustomFieldValuePersister customFieldValuePersister,
        @JiraImport GenericConfigManager genericConfigManager,
        @JiraImport TextFieldCharacterLengthValidator textFieldCharacterLengthValidator,
        @JiraImport JiraAuthenticationContext jiraAuthenticationContext) {
    super(customFieldValuePersister, genericConfigManager, textFieldCharacterLengthValidator , jiraAuthenticationContext);


I found this from this article.

1 Like

Hi @splinterface,
Thanks for the update. Unfortunately I’m extending from ReadOnlyCFType which already extends from GenericTextCFType but it is still not useable on the portal.