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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 18 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

127 views 0 4
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