TextSearcher Not Listed for my Custom Field

I have a plugin that introduces a custom field. My custom field exists, and it works. But I do not see the field suggested when using issue navigator and JQL.

I define a customfield-searcher but am not sure why it is not listed when I edit my custom field.

    <customfield-type key="fieldkey" name="test4" i18n-name-key="fieldkey.label" class="com.company.fields.CustomField">
        <description key="fieldkey.description"></description>
        <resource type="velocity" name="view" location="/templates/customfields/view.vm"/>
        <resource type="velocity" name="edit" location="/templates/customfields/edit.vm"/>
        <resource type="velocity" name="xml" location="/templates/customfields/xml.vm"/>
    </customfield-type>

    <customfield-searcher key="test-searcher" name="Test Searcher"
                          class="com.company.searchers.MyTextSearcher">
        <description>Test if text search.</description>

        <resource type="velocity" name="search" location="templates/customfields/searcher/search-basictext.vm"/>
        <resource type="velocity" name="view" location="templates/customfields/searcher/view-basictext.vm"/>
        <valid-customfield-type package="${atlassian.plugin.key}" key="fieldkey"/>
    </customfield-searcher>

Anything wrong with the above?

Anything else I can check?

Thank you!

2 Likes