whats the best/safest way to query a jira internal database with JJUPIN?

Hi all,

We need to get a data from our internal oracle database and found that sql() routine of Jjupin could be use, but i cant find example and feedback about it if its the best and safe to use?

can anybody help us on this?

Thanks,

eric

2 answers

1 accepted

Hi,

You can safely use the sql routine. You need to define a new datasource(even for the default JIRA database) and that's it. We also have the free Database Custom Field (DBCF) plugin. You can use it too if you just want to retrieve some data from database.

You can find examples here:

SQL Routine docs

Best regards,

Silviu

Hi Silviu,

I was able to use the sql() routine with my internal database(Oracle) without defining the datasource, I just use my oracle SID as the JNDIstring and it works well, is this OK?

Also should I not worry about closing the session/connection everytime i use sql() routine?

Thanks,

eric

Yes, it is ok.

Do not bother, we close it correctly on finally so you do not need to care about it. So you should be fine all the time.

Hi Eric,

Yes, that's ok, the first parameter is a JNDI name, as long as you have it configured, you can use it. You don't need to worry about session/connection. we handle that for you.

Best,

Silviu

Thanks a lot guys, jjupin really give us more capability on jira.

Hi,

You can safely use the sql routine. You need to define a new datasource(even for the default JIRA database) and that's it. We also have the free Database Custom Field (DBCF) plugin. You can use it too if you just want to retrieve some data from database.

You can find examples here:

SQL Routine docs

Best regards,

Silviu

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
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