Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

SQL query returning null result when used in SIL runner gadget

Krithica Gowri Shankar
Contributor
March 22, 2017

Hi,

We are using below script and running it in the sil runner gadget. But we are not getting any result.

string [] results = sql("jdbc/JiraDS", "select id from customfield;");
return results;

image2017-3-23 15:20:1.png

We need to get all the custom fields from the JIRA table.

1 answer

1 vote
Nic Brough -Adaptavist-
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.
March 23, 2017

Reading the database is generally the wrong way to do things in JIRA, but...

The empty result could be a genuine case of "no custom fields defined yet" - won't be true if you have Software or Service Desk, but if it's a plain Core install, it could be.  What does the GUI say is there?

If there are fields in there, then it's the connection - it's either not running the query at all, or it's unable to connect.  You'll need to check the login parameters etc.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events