Add searcher to custom field

Hey

I have written a custom field and now i wan't to add a searcher for it.
I have already tried, with no luck. My atlassian-plugin.xml looks like this:

  <customfield-type name="Release Date" i18n-name-key="release-date.name" key="release-date" class="com.scalepoint.jira.plugin.jira.customfields.ReleaseDate">
    <description key="release-date.description">Auto populated field, displaying the expected release date</description>
    <resource name="view" type="velocity" location="/templates/customfields/release-date/view-release-date.vm"/>
  </customfield-type>
 
  <customfield-searcher name="Date Range Searcher" key="releasedate-searcher" class="com.scalepoint.jira.plugin.jira.searcher.ReleaseDateSearcher">
    <description>Searcher for Release date field</description>
    <resource type="velocity" name="search" location="templates/customfields/searcher/edit.vm"/>
    <resource type="velocity" name="view" location="templates/customfields/searcher/view.vm"/>
    <valid-customfield-type package="com.scalepoint.jira.plugin.jira.customfields" key="release-date"/>
</customfield-searcher>

This should do the trick. The searcher is just a extended DateRangeSearcher class, with no aditional code.The 2 resourches are also just the default templates taken from WEB-INF\classes\templates

But it dosen't work. Can anyone see what im doing wrong?

1 answer

1 accepted

1 vote

Is this the plugin key? Use the plugin key and not the package of the Java class. If you using it right, are you seeing any error in the logs when the plugin is loaded?

com.scalepoint.jira.plugin.jira.customfields

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

116 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you