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

Joe Smith July 20, 2016

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

0 votes
Alexandra Topoloaga
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.
July 20, 2016

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

Joe Smith July 20, 2016

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

Alexandra Topoloaga
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.
July 20, 2016

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

0 votes
Silviu Burcea
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.
July 20, 2016

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

Suggest an answer

Log in or Sign up to answer