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


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,


2 answers

1 accepted

1 vote
Accepted answer

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.

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:

Please suggest me if there are any alternatives.

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
Community showcase
Published Sunday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

124 views 0 8
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