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 Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

25,693 views 2 7
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