Forums

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

Complex Query - Multiple uses of the same field in different statuses

Neta Knyazhansky Caspy
Contributor
July 17, 2022

Hi,

I'd like to create a complex query and need some assistance.

The query should include the field "Targeted End" that's now overdue, for all status, other then Completed.
And another use of the field "Targeted End" that are due in the next 8 days, and this one should be for all statuses.

Is it possible?
Can anyone please help with the syntax? 

Thanks!

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
July 17, 2022

Hi @Neta Knyazhansky Caspy 

First thing, I recommend taking this free online training from Atlassian as it shows how to answer such questions: https://university.atlassian.com/student/path/849533-gain-project-insights-through-jql

Next, using the issue search will help guide you through writing such queries.  To do this directly with JQL, please try something like this, substituting in your own project name:

project = myProjectName AND status != Completed AND "Targeted End" < startOfDay()

And you can adjust that for due in the next 8 days, inclusive:

project = myProjectName AND status != Completed AND "Targeted End" >= startOfDay() AND "Targeted End <= startOfDay(8d)

 

Kind regards,
Bill

Neta Knyazhansky Caspy
Contributor
August 10, 2022

Thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events