How can I create ActiveObjects for multi-join select on jira tables?

chintu Parameshwar January 9, 2013

Hi,

I'm trying to write a plugin in which I want to create a report of issues with a big select statment with lot of joins with the jira(jiraissue, changehistory etc) tables.

Could you please let me know how to achieve this?

Thanks a million,

chintu

2 answers

1 accepted

1 vote
Answer accepted
Samuel Le Berrigaud
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2013

The simple answer is: you cannot.

Active Objects tables spaces are separated from the JIRA table space and you cannot query JIRA's table using AO at all, nor have references (fk etc.) from AO tables to JIRA tables.

This is by design.

chintu Parameshwar January 9, 2013

I think at least I can write JDBC code in my plugin to access JIRA's tables right?

Because of the frustration on jira partial word search problem, we are trying to write a plugin to achieve our goals. The following are the related issues:

https://answers.atlassian.com/questions/40423/which-lucene-version-is-in-use-and-can-it-be-changed

https://jira.atlassian.com/browse/CONF-10412

https://jira.atlassian.com/browse/JRA-6187

Please suggest me if there are any alternatives.

Like Rahul likes this
1 vote
Renjith Pillai
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.
January 9, 2013

I guess, directly querying JIRA database tables in your plugin is not the right way to generate your report. You should be using the search service api's and do the remaining join in your code, AFAIK.

Suggest an answer

Log in or Sign up to answer