Use the simple search engine and select your options
Then, if you select the Advanced option, you will see how it translates into JQL.
In my example it was:
project = DMP AND due <= 7d
More about comparing fields with operators can be found here: https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-operators-reference-764478341.html
Hey @pragati bhatia ,
"due <= 7d" will show every issue due in the upcoming 7 days and overdue ones. Try the following JQL for a range between today and the next 7 days.
due >= startOfDay() AND due <= 7d
With that being said, it is always a good option to try the simple search first and adjust the resulting JQL like @Bogdan Gorka explained.
Thanks @Merve Nur Bas I have learnt something too.
To exclude overdue issues I would normally use due >= "0" AND due <= 7d but I am not sure if the the "0" means start of the day or the moment the JQL is executed. So, to be 100% sure, it is better to use startOfDay().
More about avanced search functions can be found here: