youtrackyoutrack-api

YouTrack Query: how to get issues from last 10 days?


I'd like to get from -10 days to today with YouTrack Query but official document seems not supported.

In case of Jira, it supports (updatedDate <= now() AND updatedDate >= -10d)

Is there any way to get the result correctly?


Solution

  • you could set range

    from documentation: (https://www.jetbrains.com/help/youtrack/standalone/Search-and-Command-Attributes.html#Date-and-Period-Values) Date and Period Values Several search attributes reference values that are stored as a date. You can search for dates as single values or use a range of values to define a period.

    Specify dates in the format: YYYY-MM-DD or YYYY-MM or MM-DD. You also can specify a time in 24h format: HH:MM:SS or HH:MM. To specify both date and time, use the format: YYYY-MM-DD}}T{{HH:MM:SS. For example, the search query created: 2010-01-01T12:00 .. 2010-01-01T15:00 returns all issues that were created on 1 January 2010 between 12:00 and 15:00.

    You can also use pre-defined relative parameters to search for date values. The values for these parameters are calculated relative to the current date according to the time zone of the current user. The actual value for each parameter is shown in the query assist panel.

    example: typo it in query textbox issue updated: 2018-07-17 .. 2018-07-07

    I hope it's helpful because of it easiest than write lambdas