Query Start Date for tickets that start next week

Hi All,

using JIRA 6.3. We have a custom field called start date.

I am trying to run a query to capture all tickets that will start as of next week. However the query is not working for me. I am following the guidelines here from the Advanced searching doc:

https://confluence.atlassian.com/display/JIRA/Advanced+Searching#AdvancedSearching-startOfDay%28%29

I have created a ticket with a start date in 3 days, In a very simple statement like:

"Start date" = startOfWeek()

I get no results.

What I would like is to get a view for all the tickets with a start date in this week. And also for next week so that we can view team resource.

Can anyone assist. Thanks in advance!

2 answers

Hi Nick,

startOfWeek() is actually the date of the start of the week, so Start Date = startOfWeek() only searches for issues that have a Start Date that is the same as the date at the start of the week. To search for everything with a Start Date this week you would need ("Start Date" AFTER startOfWeek() and "Start Date" BEFORE endOfWeek()).

For the next week you can use ("Start Date" AFTER startOfWeek(7d) and "Start Date" BEFORE endOfWeek(7d)). The 7d says "look for issues with a Start Date after the date 7 days from the start of this week.

Andrew

Hi Andrew, thanks for the prompt response. Got it, I will give your statements a bash and revert.

In the meantime I seem to have got it to work this morning by using the following:

"Start date" >= startOfWeek(1w) AND "Start date" <= startOfWeek(2w)

Statement not as clean as yours though.

Nick

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,308 views 14 20
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot