Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL issue for last 7 days Edited

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

0 votes
Answer accepted

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.

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

@Hoc I'm glad this query worked :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

157 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you