Find issues modified during last X days

Answered

I would like to be able to query issues that have changed in the last N number of days. For example, if you have a meeting each week on Wednesday and would like to see what's been updated since the meeting last week. As far as I can tell, the only way to accomplish this right now is using a concrete date range? ("This week" doesn't cover it since it doesn't include Thursday - Sunday of last week and combining "This week" and "Last week" goes too far back, including days before the previous meeting)

I think what I'm looking for is date math in the query? For example, something like `#{now} .. #{now - 7days)` or `#{today} .. #{7 days ago)`

 

I'm new to YouTrack so there's a good chance I have just overlooked how to do this...

3
4 comments
Official comment

Hello, you can use one of these queries:

`updated: {This week}` - all issues modified during this week (starting on Monday)

`updated: {Last week}` - all issues updated during last week

`updated: 2017-05-01 .. 2017-05-12` - all issues updated from May, 1st until May, 12th

`updated: 2017-05-01 .. Today` - all issues updated from May 1 until today

More about our search terms you can learn here: https://www.jetbrains.com/help/youtrack/incloud/2017.2/Search-and-Command-Attributes.html#d116243e1656

Please let me know if you have any further questions, I'll be happy to help.

 

 

Thanks Liubov.  I think that answers the question, that there's not a way to do it without entering real dates.

Just to clarify, with further example... If today was Wed, May 10, 2017 and I wanted to see all tickets modified between Wed, May 3, 2017 and Wed, May 10, 2017 (and nothing outside of that range) I would need to use `updated: 2017-05-03 .. 2017-05-10`

What I would really like to be able to do is `updated: {7 days ago} .. Today` so that I could save the query to use each week.

 

 

0

Hi Rush, I'm sorry for the delay. Please vote for these feature requests: https://youtrack.jetbrains.com/issue/JT-24025 and https://youtrack.jetbrains.com/issue/JT-8620

Thank you!

0

updated: {minus n} .. Today)

where n can be a number of days, weeks, months, years.

e.g.

7 days:
updated: {minus 7d} .. Today)

4 weeks:
updated: {minus 4w} .. Today)

3 month:
updated: {minus 3m} .. Today)

1 year:
updated: {minus 1y} .. Today)

 

Search Query Reference | YouTrack InCloud (jetbrains.com)
See custom date parameters

0

Please sign in to leave a comment.