Using Kepler Database Custom Fields to pull info from CSV file not working with JIRA 7

We have just upgraded to JIRA 7 and a Database Custom Field we have set up no longer works.

In context.xml we have:

<Resource name="clientlistDS"
    auth="Container"
    type="javax.sql.DataSource"
    username="sa"
    password=""
    driverClassName="org.hsqldb.jdbcDriver"
    url="jdbc:hsqldb:/home/jira/clientlist;create=true;" /> 

In /home/jira:

clientlist.script:

CREATE SCHEMA PUBLIC AUTHORIZATION DBA CREATE TEXT TABLE CLIENTLIST_TBL(ID BIGINT,CLIENTNAME VARCHAR,OWNER VARCHAR) SET TABLE CLIENTLIST_TBL SOURCE "clientlist.csv;ignore_first=true;cache_rows=0;cache_size=0" CREATE USER SA PASSWORD "" GRANT DBA TO SA SET WRITE_DELAY 20

clientlist.properties:

#HSQL Database Engine #Wed Jul 20 10:40:28 BST 2016 hsqldb.script_format=0 runtime.gc_interval=0 sql.enforce_strict_size=false hsqldb.cache_size_scale=8 readonly=false hsqldb.nio_data_file=true hsqldb.cache_scale=14 version=1.8.0 hsqldb.default_table_type=memory hsqldb.cache_file_scale=1 hsqldb.log_size=200 modified=yes hsqldb.cache_version=1.7.0 hsqldb.original_version=1.8.0 hsqldb.compatible_version=1.8.0

The Database Custom Field is configured to use Database (JNDI name) clientlistDS.

SQL Query: SELECT ID, CLIENTNAME, OWNER from CLIENTLIST_TBL

Column: CLIENTNAME

But field in JIRA GUI shows:

Error rendering 'databaseinput'. Please contact your JIRA administrators.

2 answers

This widget could not be displayed.

Without some logs, it's hard to guess the cause.

This widget could not be displayed.

Hi,

 

It's a known issue, check this page: https://confluence.kepler-rominfo.com/display/DBCF/Database+custom+fields+don%27t+work+on+JIRA+7

 

Best Regards,

Alexandra

Hello
Thanks for getting back to me.  I did find that page whilst googling and researching this issue.

It gives the solution for SQL Server and Postgres DBs, which is basically update the driver.

Is the same advice applicable for HSQL?  Update the driver?

Rgds

Joe

As far as I know, it's the same problem: Atlassian seem to forget to update the drivers.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

178 views 1 3
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