In the JIRA developer documentation for custom field types there is mentioned that in order to make a new custom field type searchable one can use the element valid searcher.
<customfield-type ...> ...
<valid-searcher package="com.atlassian.jira.issue.customfields.searchers" key="numberrange" />
</customfield-type>
Should this still work in JIRA 6.4 ?
Community moderators have prevented the ability to post new answers.
I got it working! The solution is to specify the correct package. I used the java package. But one must use the package key which is defined in the system-customfieldtypes-plugin.xml (in the jira-project itself).
Example:
<customfield-type key="euro-field" name="Euro" class="de.codecentric.jira.customfields.EuroCFType">
<description> A custom field type for an Euro Value.
</description>
<resource type="velocity" name="view" location="templates/cf_euro/view.vm" />
<resource type="velocity" name="edit" location="templates/cf_euro/edit.vm" />
<valid-searcher package="com.atlassian.jira.plugin.system.customfieldtypes" key="numberrange" />
</customfield-type>
Yes, it does. You need to pick the searcher when you create the custom field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When I add/edit the field there is an error message "There are no search templates for this custom field type"
Can you post an example?
I cant get this to work - and I just found a similar question. If possible I would like to avoid a dummy searcher.. see: https://answers.atlassian.com/questions/69644
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.