SQL query returning null result when used in SIL runner gadget

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 votes

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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

261 views 0 12
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot