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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

165 views 0 2
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