usable complex custom field searcher example

Alied Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2014

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?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Alied Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2014

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.

MattS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2014

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

Alied Perez
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 8, 2014

I would need time, and of course, the permission from my employer; even if I will not disclose internal information.

courchesne July 2, 2015

Have you published something? I would be interested if it could somewhat help me with the almost the same problem you had.. @Alied Perez

0 votes
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2014

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.

TAGS
AUG Leaders

Atlassian Community Events