Forums

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

Convert JQL to SQL

Anis Ben Romdhane
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 13, 2018

Hi,

I want to convert JQL query used on Jira to SQL.

The Jql filter used is :

project = code AND resolved > startOfWeek(-1w) AND resolved < startOfWeek() AND fixVersion <= code ORDER BY status DESC, resolved ASC"

Anyone know how to convert that in SQL and how to know in which table on database the fields "resolved", "fix version", "affect versions" exists.

2 answers

1 vote
Mohamed Benziane
Community Champion
September 13, 2018

Hi @Anis Ben Romdhane

For me, resolved will be in jiraissue called "RESOLUTIONDATE" for the other table you can take a look at this:

https://confluence.atlassian.com/display/JIRA041/Example+SQL+queries+for+JIRA#ExampleSQLqueriesforJIRA-FindFixedForversionsforanissue

 

Regards

0 votes
Pablo Beltran
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.
October 17, 2018

You might want to have a look at the SQL+JQL Driver plugin as it allows such kind of transformations of JQL into SQL in a straightforward way, BUT the conversion is not for the Jira native database space.

Suggest an answer

Log in or Sign up to answer