Forums

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

How to create a JQL to show all work from from past to current

Alicia Morgan September 12, 2023

Hello there - I would like to create a JQL to gather all past work for my project within the last year to current date.  By current date, I mean indefinitely. 

Can someone help me with how to write this query? 

3 answers

3 accepted

0 votes
Answer accepted
Mathew Lederman
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 13, 2023

If you want the query to be a sliding scale (shows only tickets created 1 year prior to the current date) you would use something like this:

project = [XXX] and created >= -365d

If you want to go the beginning of the previous year, as @Akbar Gulaliyev said you would use something like this:

project = [XXX] and created >= startOfYear(-1y)

If you want to go to the beginning of the current year, it would be this:

project = [XXX] and created >= startOfYear()
0 votes
Answer accepted
Akbar Gulaliyev
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 12, 2023

Hello @Alicia Morgan !

What do you mean as all past work? If you mean all tasks you were assigned to, you can try this JQL:

assignee = currentuser() AND (created >= startOfYear(-1y) OR updated >= startOfYear(-1y))

0 votes
Answer accepted
Craig Nodwell
Community Champion
September 12, 2023

Hi @Alicia Morgan this should be fairly simple.
project = XXXXX AND created <= now()

Suggest an answer

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

Atlassian Community Events