Forums

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

Hello All, I need SQL for the JQL Query

MEHRAJ FARHEEN November 7, 2018

I'm trying to mae report on JIRAdatabse for the belo JQL

 

project = idm and "Demand Type" = CR and ((sprint in (9,6)) or (sprint is empty and status not in (Live,Cancelled))

I have been trying to work on it fo sometime now. Please help. The key issue is I'm unable to track the number of CRs thats gone live wiithin a sprint.

 

Im woking o SAP BO webi report, so i can getch Live data anytime.

 

Please help.

2 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 Leaders.
November 8, 2018

There are somewhere between 12 and 26 highly inefficient joins you would need to make in to replicate that JQL in SQL.  Probably towards the higher end if I remember the Software data correctly.

Please, don't.  The Jira database is not intended for reporting like this and SQL is the worst possible way to report on Jira data.

Try running the SQL over a simple REST call instead.  It will work fine, faster, will rarely (if ever) need any updates and re-testing on upgrade, and won't put unnecessary load on your database.

MEHRAJ FARHEEN November 11, 2018

Can you please provide more details about REST CALL?

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.
November 12, 2018
0 votes
Bastian Stehmann
Community Champion
November 7, 2018

Hi @MEHRAJ FARHEEN,

welcome to the community.

Why don't you use Jira to get the live data anytime?

I do not recommend creating reports based on SQL.

MEHRAJ FARHEEN November 8, 2018

Thank you @Bastian Stehmann, we need to send this schedle report to top management daily ith some calculations and analysis.

Using report is the only option for me. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events