Forums

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

Why requested date not working in a long SQL query (advanced search JIRA)?

Lyes.Ettayeb
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 1, 2022

Hello Everyone! I have a question regarding the SQL advanced search in JIRA. I'm new when it comes to SQL, but it seems like the: date field >= yyyy-mm-dd is not working when included in a long query, but will work when it's a small query? Is this known or am I doing something wrong?

When used in a long query (less than 5000 characters), the date requested in the query is ignored and data returned includes all kind of dates, and it will pull all existing tickets that satisfy the query but not the date condition.

1 answer

1 accepted

0 votes
Answer accepted
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.
September 1, 2022

Welcome to the Atlassian Community!J

QL is not SQL.

There are a couple of things to look at here. 

First, there's a limit on the number of characters you can put in a JQL field, and I don't think it's 5,000, that may mean your query is being truncated.

The second one is that it's easy to get a JQL string wrong, and the most likely explanation is that your query isn't doing what you think it is.

Could you give us the (outline of) the query you're trying to do?

Lyes.Ettayeb
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!
October 10, 2022

Thank you so much for the clarifications on the above, and sorry I kept referring to it as SQL :) but I was able to find out what was wrong, it was just a conjunction clause (OR) I believe what's triggered that. Thank you again!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events