Hi Guys,
I am using JIRA detault timetracking feature. With this I am able to provide estimate for each cases and can fill up timesheets by means of logging time under each case by each users.
Somehow, from the default reports that JIRA provides, they do not serve my purpose of Management Reporting.
To overcome this issue, I am thinking to connect to JIRA Database and writing my own SQL to fetch the data I need and create my custom reports.
Can someone advise on how do I connect to JIRA Database for this purpose?
Thanks,
Gaurav Thaker
Do not use the database directly. It is not optimised or designed for reporting and you'll quickly find yourself trying to write hideously complex SQL that can become a performance problem and still not give you the data you need.
Please, use the REST API for extracting reports - it's much more logical, faster, respects permissions, and doesn't need you to understand how the Jira database works.
(And if you do connect to the database despite that, make sure you only have a read-only account - never never write to an active Jira database, you WILL damage it)
Hi Nic,
Thank you very much for guidance here, using API makes better sense, I will avoid using direct Database access. If possible, could you please any guidance on using REST API with JIRA for this purpose?
Thanks,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrew beat me to the links you need for the REST API. As they say, you have no database access to Cloud anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nic Brough -Adaptavist- & @Andrew ,
Thank you to both of you. I think below is the API I was looking for. I will give try with this for what I want to achieve.
Thanks,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaurav Thaker ,
Information about DB you can find in admin panel 'system info'
http://localhost:8087/secure/admin/ViewSystemInfo.jspa
Try find 'Database URL' parameter, but this not show credentials.
Info with credential You can find in C:\Atlassian\Application Data7\JIRA\dbconfig.xml. (My path for example, you need only xml file).
But will be very careful. Change directly in DB may break all system.
B.R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear B.R.,
Thank you very much for quick response. Apology, but I forgot to mention that we are using On Demand (Cloud) and not local set up. Would you be able to provide instruction for that please?
Thanks,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.