Forums

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

2 equivalent JQL queries with different result set

Volker Lenz
Contributor
September 13, 2023

According to JQL tech docs, one would expect the following 2 JQL queries to produce the same output:

query 1: sprint = 480 OR sprint in openSprints()

query 2: sprint in (480, openSprints())

However, we found in our JIRA project that while query 1 always delivers expected results query 2 does not. For some - not all - unsers, query 2 prints error messages, stating that the user is not entitled to see the content of sprints. 

This can hardly be understood as a permission issue, as query 1 is supposed to run through the same subset of sprints as query 2 does. 

Anyone else here, who is familiar with this case and can explain?

1 answer

0 votes
Tom Lister
Community Champion
September 19, 2023

Hi @Volker Lenz 

How do they JQL queries behave for user when run separately?

sprint in (480)

sprint in (openSprints())

Volker Lenz
Contributor
September 20, 2023

Both queries, when executed seperately, deliver correct results.

Volker Lenz
Contributor
September 20, 2023

we also tested with the following query: sprint in (sprint A, sprint B), where sprint A is an open sprint and sprint B is not. That statement also worked for all users.

Volker Lenz
Contributor
September 20, 2023

so the impression is there is something weird going on when you use functions like openSprints() as arguments of the list operator IN.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events