Jira query - show cards created between today and minus 14 days from today
Asked Answered
H

2

26

I can't seem to find a solution for my query in jira. I wish to only show cards created between today and -14 days from today.

I am thinking along the lines of created >= today(-14d) AND created <= today().

I can't seem to use today(-14d) in my version of Jira which is 6.1.5.

Thanks.

Hazelton answered 9/1, 2015 at 0:33 Comment(0)
U
44

You can use this JQL query:

created >= -14d AND created <= now()

See: https://confluence.atlassian.com/display/JIRA/Advanced+Searching

Unbeaten answered 9/1, 2015 at 7:22 Comment(1)
I don't think you need the AND created <= now(), created >= -14d would always already match thosePsychasthenia
I
6

Looks like jira returns result based on timestamp instead of date. So -1d is NOW minus 24 hrs..... ; I experienced that results were not showing all records of previous day as well as the outcome changed when time elapsed during the day.

Found a solution by using: created >= startOfDay(-1)

Intermarry answered 5/10, 2018 at 15:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.