Hi,
I'm developping a new JIRA custom field (AbstractMultiCFType). My field works just fine and I want to add search and sort functionnality. So I added a new plugin module «atlas-create-jira-plugin-module» for searching.
When I load my plugin the column in my issue navigator doesn't allow me to sort or search, Here is my atlassian-plugin.xml:
<?xml version="1.0" encoding="UTF-8"?> <atlassian-plugin key="${project.groupId}.${project.artifactId}" name="${project.name}" plugins-version="2"> <plugin-info> <description>${project.description}</description> <version>${project.version}</version> <vendor name="${project.organization.name}" url="${project.organization.url}"/> <param name="plugin-icon">images/pluginIcon.png</param> <param name="plugin-logo">images/pluginLogo.png</param> </plugin-info> <!-- add our i18n resource --> <resource type="i18n" name="i18n" location="CompteUsagerUQTR"/> <!-- add our web resources --> <web-resource key="CompteUsagerUQTR-resources" name="CompteUsagerUQTR Web Resources"> <dependency>com.atlassian.auiplugin:ajs</dependency> <context>atl.general</context> <resource type="download" name="CompteUsagerUQTR.css" location="/css/CompteUsagerUQTR.css"/> <resource type="download" name="CompteUsagerUQTR.js" location="/js/CompteUsagerUQTR.js"/> <resource type="download" name="images/" location="/images"/> <context>CompteUsagerUQTR</context> </web-resource> <!-- import from the product container --> <component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties"/> <customfield-type name="Compte Usager UQTR" i18n-name-key="compte-usager-uqtr.name" key="compte-usager-uqtr" class="ca.uqtr.jira.plugin.CompteUsagerUQTR"> <description key="compte-usager-uqtr.description">The Compte Usager UQTR Plugin</description> <resource name="view" type="velocity" location="/templates/templates/customfields/compte-usager-uqtr/view.vm"/> <resource name="edit" type="velocity" location="/templates/templates/customfields/compte-usager-uqtr/edit.vm"/> <resource type="velocity" name="xml" location="templates/plugins/fields/xml/xml-basictext.vm"/> </customfield-type> <ao key="ao-module"> <description>The configuration of the Active Objects service</description> <entity>ca.uqtr.jira.plugin.InfoCompte</entity> </ao> <component-import key="ao" name="Active Objects components" interface="com.atlassian.activeobjects.external.ActiveObjects"> <description>Access to the Active Objects service</description> </component-import> <customfield-searcher name="Compte Usager UQTR Searcher" i18n-name-key="compte-usager-uqtr-searcher.name" key="compte-usager-uqtr-searcher" class="ca.uqtr.jira.plugin.CompteUsagerUQTRSearcher"> <description key="compte-usager-uqtr-searcher.description">The Compte Usager UQTR Searcher Plugin</description> <resource name="search" type="velocity" location="/templates/customfields/compte-usager-uqtr-searcher/search.vm"/> <resource name="view" type="velocity" location="/templates/customfields/compte-usager-uqtr-searcher/search.vm"/> <valid-customfield-type package="ca.uqtr.jira.plugin.CompteUsagerUQTR" key="compte-usager-uqtr"/> </customfield-searcher> </atlassian-plugin>
I search a way to make it work or to troubleshoot and know what's wrong..
Thanks
Community moderators have prevented the ability to post new answers.
Finally JIRA is recognizing my searcher after I refactored all the code of the plugin to use all function.
Note that it recognize it only in my JIRA server; I can't make it work on the JIRA instance that come with the SDK.
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.
Check under the plugin modules to see if the searcher was loaded correctly. For some reason, it is not associated with the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
package on the valid-customfield-type tag should be the JIRA plugin key and not the java package. If that is correct, make sure you have set the searcher after creating 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.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.