JQL issue for last 7 days

Hoc
Contributor
September 17, 2020

Hello, 

 

I have this JQL that should be showing a 'Date' field from the last 7 days. But it is showing 7 days in the past and 7 days in the future.

From the picture below it should only show from 18/9/20 and any issue from the last 7 days not 7 days into the future as well.

 

This is the JQL

 

"Date of Last Day[Date]" >= -7d AND issuetype = "Request - Exit User" ORDER BY cf[10083] ASC

 

Not sure why?

 

Snip20200918_142.png

1 answer

1 accepted

1 vote
Answer accepted
Sramanth Pandeti
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 17, 2020

Hi @Hoc Plase try the below JQL query:

"date of last day[Date]" >= "-7d" AND "date of last day[Date]" <= now()

 This query will not show any issues in the future.

Hoc
Contributor
September 21, 2020

Hi @Sramanth Pandeti

 

Thanks for that. My colleague managed to show me what to do which returns the same result as what you showed. Thank you :)

 

Hopefully this solution helps others well

 

Snip20200922_168.png

Sramanth Pandeti
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 22, 2020

@Hoc I'm glad this query worked :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events