Hi, I'm trying to create a searcher for a complex custom field.
I have a custom field comprised of a collection of POJOS.
Now I need to search for a property in these POJOs, but the examples I have found are rather simple and outdated. I have not found a working example for Jira4.x or later. The Atlassian tutorials and javadoc are not very useful either. They just state the obvious and don't provide further details.
Has anybody been able to create a searcher for a complex custom field?
Community moderators have prevented the ability to post new answers.
OK, seems there are no proper example, tutorial, nor whatever. Just had to figure out myself.
Hopefuly I will be publishing a series of articles on the subject.
Looking forward to it, since you're right, it's definitely an area that could do with more documentation for developers. There are some guidelines about creating searchers in Practical JIRA Plugins which refer to JIRA 5.x, and the source code at https://bitbucket.org/mdoar/practical-jira-pluginsis for JIRA 5.x as well
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would need time, and of course, the permission from my employer; even if I will not disclose internal information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you published something? I would be interested if it could somewhat help me with the almost the same problem you had.. @Alied Perez
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Download the source code of JIRA (for the version you're working on) and see the jira-project\jira-components\jira-core\src\main\resources\system-customfieldtypes-plugin.xml for an example how to declare a searcher in atlassian-plugin.xml file.
Then look at the source code of the searcher classes mentioned in the xml for reference on the Java code reqired.
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.