Dynamic Date Range - Monday to Sunday

Hi there, I would like to run a JQL query showing items created/updated within the past working week, essentially Mon-Sun (when running the query during the following week). Eg. running the query today (18/09) I would expect to see items created/updated between Monday 08/09 through to Sunday 14/09.

So far, I've come up with: 

project in (RTO) AND status changed from Open to (Resolved, Closed) AND updatedDate > -7d AND createdDate > -7d

This gives me the previous 7 days, regardless of when I'm running the query. I need something more finite.

1 answer

This widget could not be displayed.

Hey Peter,

how about using the JQL functions like StartOfWeek().
"project in (RTO) AND status changed from Open to (Resolved, Closed) AND updatedDate >= StartOfWeek(-7d)"
Monday to monday in this case.

Hope this could help.
 
Greets
Simon 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,479 views 10 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you