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

This widget could not be displayed.

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.

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

103 views 14 7
Join discussion

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