The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to query SQL by the same number of records issue from JQL

Le Anh Son (K14 HL)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 22, 2022

I want to using query statement from SQL to getting all of record about issue in database with condition that the number of result must be the same with JQL. Anyone can help me?

Requirement: Getting all of issue that belong to one project and sprint

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
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 Champions.
September 23, 2022

Welcome to the Atlassian Community!

Seriously, don't bother.  The Jira database is not remotely designed for any form of reporting, it is a data store.

You are wasting your time trying to use SQL to report on your Jira data.  The best case is that you'll get an inaccurate report.  The worst case is that you'll take your server down with a hideously non-performant slab of complex SQL.

0 votes
Radek Dostál
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 Champions.
September 23, 2022

It's not that difficult and would take 3 tables and 2 where conditions, question is, why do you think you want to get this from the database, when you can already get it from Jira? Not to be the annoying guy, but from what I came across almost every time there is no need to stick fingers in DB, it's not the meant way to do reports or data collection, and if you're not already familiar with the structure, it will be rather tedious for you to expand on it any further.

TAGS
AUG Leaders

Atlassian Community Events