wiki:TracQuery

Trac Ticket Queries

In addition to reports, Trac provides support for custom ticket queries, used to display lists of tickets meeting a specified set of criteria.

To configure and execute a custom query, switch to the View Tickets module from the navigation bar, and select the Custom Query link.

Filters

When you first go to the query page the default filter will display tickets relevant to you:

  • If logged in then all open tickets it will display open tickets assigned to you.
  • If not logged in but you have specified a name or email address in the preferences then it will display all open tickets where your email (or name if email not defined) is in the CC list.
  • If not logged and no name/email defined in the preferences then all open issues are displayed.

Current filters can be removed by clicking the button to the left with the minus sign on the label. New filters are added from the pulldown lists at the bottom corners of the filters box ('And' conditions on the left, 'Or' conditions on the right). Filters with either a text box or a pulldown menu of options can be added multiple times to perform an or of the criteria.

You can use the fields just below the filters box to group the results based on a field, or display the full description for each ticket.

Once you've edited your filters click the Update button to refresh your results.

Clicking on one of the query results will take you to that ticket. You can navigate through the results by clicking the Next Ticket or Previous Ticket links just below the main menu bar, or click the Back to Query link to return to the query page.

You can safely edit any of the tickets and continue to navigate through the results using the Next/Previous/Back to Query links after saving your results. When you return to the query any tickets which were edited will be displayed with italicized text. If one of the tickets was edited such that it no longer matches the query criteria the text will also be greyed. Lastly, if a new ticket matching the query criteria has been created, it will be shown in bold.

The query results can be refreshed and cleared of these status indicators by clicking the Update button again.

Saving Queries

Trac allows you to save the query as a named query accessible from the reports module. To save a query ensure that you have Updated the view and then click the Save query button displayed beneath the results. You can also save references to queries in Wiki content, as described below.

Note: one way to easily build queries like the ones below, you can build and test the queries in the Custom report module and when ready - click Save query. This will build the query string for you. All you need to do is remove the extra line breaks.

Note: you must have the REPORT_CREATE permission in order to save queries to the list of default reports. The Save query button will only appear if you are logged in as a user that has been granted this permission. If your account does not have permission to create reports, you can still use the methods below to save a query.

You may want to save some queries so that you can come back to them later. You can do this by making a link to the query from any Wiki page.

[query:status=new|assigned|reopened&version=1.0 Active tickets against 1.0]

Which is displayed as:

Active tickets against 1.0

This uses a very simple query language to specify the criteria (see Query Language).

Alternatively, you can copy the query string of a query and paste that into the Wiki link, including the leading ? character:

[query:?status=new&status=assigned&status=reopened&group=owner Assigned tickets by owner]

Which is displayed as:

Assigned tickets by owner

Using the [[TicketQuery]] Macro

The TicketQuery macro lets you display lists of tickets matching certain criteria anywhere you can use WikiFormatting.

Example:

[[TicketQuery(version=0.6|0.7&resolution=duplicate)]]

This is displayed as:

No results

Just like the query: wiki links, the parameter of this macro expects a query string formatted according to the rules of the simple ticket query language. This also allows displaying the link and description of a single ticket:

[[TicketQuery(id=123)]]

This is displayed as:

#123
mplayer installation OPRE5 requested

A more compact representation without the ticket summaries is also available:

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Finally, if you wish to receive only the number of defects that match the query, use the count parameter.

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:

0

Customizing the table format

You can also customize the columns displayed in the table format (format=table) by using col=<field> - you can specify multiple fields and what order they are displayed by placing pipes (|) between the columns like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]]

This is displayed as:

Results (1 - 3 of 1578)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#2353 wontfix "Got unexpected packet after EOF" beastd rhialto
#2352 fixed Document gmplayer file argument beastd jidanni@…
#2351 worksforme gmplayer could take a file argument ib jidanni@…
1 2 3 4 5 6 7 8 9 10 11

Full rows

In table format you can also have full rows by using rows=<field> like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter,rows=description)]]

This is displayed as:

Results (1 - 3 of 1578)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#2353 wontfix "Got unexpected packet after EOF" beastd rhialto
Description

Summary of the bug:

For many video and audio files that are somewhat (some years or so) older, I get many messages of the form

A:   1.5 V:   1.5 A-V:  0.050 ct: -0.043  36/ 36 125%  3%  4.0% 16 6 
[mp3float @ 0x7cafc6874980]Got unexpected packet after EOF

This occurs for instance (but not exclusively with) MPEG-2 broadcasts that were captured.

The annoying effect is that the audio stutters.

The messages can be suppressed with "msglevel=decaudio=0". This reduces the stuttering, but often it doesn't really go away.

I an very certain that the version of mplayer of when the files were new did not have this problem. Other playes also don't show this problem.

How to reproduce: with this broadcast capture from 2005:

$ mplayer -v 161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg
MPlayer 1.3.0-5.5.0 (C) 2000-2016 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 13
CPU: Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (Family: 6, Model: 42, Stepping: 7)
extended cpuid-level: 8
extended cache-info: 16801856
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSE3: 1 SSSE3: 1 SSE4: 1 SSE4.2: 1 AVX: 1
Compiled with runtime CPU detection.
get_path('codecs.conf') -> '/home/xxx/.mplayer/codecs.conf'
Reading optional codecs config file /home/xxx/.mplayer/codecs.conf: No such file or directory
Reading optional codecs config file /usr/pkg/share/mplayer/codecs.conf: 224 audio & 451 video codecs
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/xxx/.mplayer/fonts'
Configuration: --prefix=/usr/pkg --disable-smb --disable-ffmpeg_a --yasm= --disable-aa --disable-caca --enable-cdparanoia --disable-libdca --enable-libdv --enable-dvdnav --disable-esd --disable-faac --enable-faad --disable-ggi --enable-gif --enable-jpeg --disable-mp3lame --enable-mad --disable-mlib --enable-menu --enable-runtime-cpudetection --disable-win32dll --enable-nas --enable-ossaudio --enable-png --disable-pulse --enable-sdl --enable-theora --disable-vidix --enable-x264 --enable-xvid --enable-vdpau --disable-lirc --extra-libs=-lx264 -lxvidcore --disable-mencoder --confdir=/usr/pkg/share/mplayer --enable-xvmc --with-xvmclib=XvMCW
CommandLine: '-v' '161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg'
Using nanosleep() timing
get_path('input.conf') -> '/home/xxx/.mplayer/input.conf'
Parsing input config file /home/xxx/.mplayer/input.conf
Input config file /home/xxx/.mplayer/input.conf parsed: 6 binds
get_path('161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg.conf') -> '/home/xxx/.mplayer/161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg.conf'

Playing 161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg.
get_path('sub/') -> '/home/xxx/.mplayer/sub/'
[file] File size is 1535055872 bytes
STREAM: [file] 161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 57.83.100 (external)
Configuration: --enable-avfilter --enable-avresample --enable-postproc --enable-rpath --disable-ffplay --enable-fontconfig --enable-libfreetype --enable-libass --disable-htmlpages --enable-libfdk_aac --enable-nonfree --enable-gnutls --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-openssl --disable-libtesseract --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-libx265 --enable-vdpau --enable-vaapi --enable-libvpx --disable-libxcb --enable-libbluray --arch=x86_64 --cc=gcc --disable-debug --disable-optimizations --disable-stripping --enable-gpl --enable-libxml2 --enable-pthreads --enable-shared --mandir=/usr/pkg/man --prefix=/usr/pkg --progs-suffix=3 --datadir=/usr/pkg/share/ffmpeg3 --docdir=/usr/pkg/share/doc/ffmpeg3 --incdir=/usr/pkg/include/ffmpeg3 --libdir=/usr/pkg/lib/ffmpeg3 --shlibdir=/usr/pkg/lib/ffmpeg3 --enable-runtime-cpudetect
LAVF_check: MPEG-PS (MPEG-2 Program Stream)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename 161 - Doctor Who - ROSE - DVD (MPEG2) quality.mpg ext: .mpg
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 70224, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851704
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG-PS file format detected.
ds_fill_buffer: EOF reached (stream: audio)  
MPEG: No audio stream found -> no sound.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  5102.4 kbps (637.8 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=0.0400
Could not find a UTF-8 locale,
character keys beyond Latin-1 will not be handled.
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1920x1200 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Failed to open VDPAU backend Shared object "libvdpau_r600.so" not found
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] Using Xv Adapter #0 (Radeon Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 16384x16384
Opening video filter: [pp]
[vo] query(Planar YV12) -> 3
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=0, chromMode=0
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=2, chromMode=0
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=3, chromMode=0
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=3, chromMode=2
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=3, chromMode=3
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=7, chromMode=3
pp: de
pp: de::de
pp: hb::hb
pp: option: a
pp: vb::vb
pp: option: a
pp: dr::dr
pp: option: a
pp: lumMode=7, chromMode=7
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Configuration: --enable-avfilter --enable-avresample --enable-postproc --enable-rpath --disable-ffplay --enable-fontconfig --enable-libfreetype --enable-libass --disable-htmlpages --enable-libfdk_aac --enable-nonfree --enable-gnutls --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-openssl --disable-libtesseract --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libxvid --enable-libx264 --enable-libx265 --enable-vdpau --enable-vaapi --enable-libvpx --disable-libxcb --enable-libbluray --arch=x86_64 --cc=gcc --disable-debug --disable-optimizations --disable-stripping --enable-gpl --enable-libxml2 --enable-pthreads --enable-shared --mandir=/usr/pkg/man --prefix=/usr/pkg --progs-suffix=3 --datadir=/usr/pkg/share/ffmpeg3 --docdir=/usr/pkg/share/doc/ffmpeg3 --incdir=/usr/pkg/include/ffmpeg3 --libdir=/usr/pkg/lib/ffmpeg3 --shlibdir=/usr/pkg/lib/ffmpeg3 --enable-runtime-cpudetect
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
AutoQ: setting quality to 6.
Load subtitles in ./
get_path('sub/') -> '/home/xxx/.mplayer/sub/'
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 1536000 + 131072 = 1667072 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec "mp2float" init OK!
AUDIO: 48000 Hz, 2 ch, floatle, 256.0 kbit/8.33% (ratio: 32000->384000)
Selected audio codec: [ffmp2float] afm: ffmpeg (FFmpeg MPEG layer-1 and layer-2 audio)
==========================================================================
Building audio filter chain for 48000Hz/2ch/floatle -> 0Hz/0ch/??...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[dummy] Was reinitialized: 48000Hz/2ch/floatle
Trying preferred audio driver 'oss', options '[none]'
ao2: 48000 Hz  2 chans  floatle
audio_setup: using '/dev/sound' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
OSS: Unknown/not supported internal format: floatle
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   7/8  (8192 bytes/frag)  free:  57344
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/floatle -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[libaf] Adding filter format 
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
[dummy] Was reinitialized: 48000Hz/2ch/floatle
[format] Changing sample format from little-endian 32-bit float to little-endian 16-bit signed int
[format] Accelerated little-endian 32-bit float to little-endian 16-bit signed int conversion
Starting playback...
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[libaf] Reallocating memory in module format, old len = 0, new len = 59401
Increasing filtered audio buffer size from 0 to 59392
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 720 x 576 (preferred colorspace: MPEG1/2 Motion Compensation and IDCT)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (720x576->720x576,flags=4,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0  
VO: [xv] 720x576 => 720x576 Planar YV12  [zoom]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 63 for hw scaling
*** [pp] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
*** [pp] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=4,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0  
VO: [xv] 720x576 => 1024x576 Planar YV12  [zoom]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 63 for hw scaling
*** [vo] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
[postproc @ 0x7b1a9f216040]using npp filters 0x7/0x7
Unicode font: 5369 glyphs.
Unicode font: 5369 glyphs.
A:   1.0 V:   0.8 A-V:  0.277 ct:  0.000   2/  2 ??% ??% ??,?% 2 6 
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
*** [pp] Allocating mp_image_t, 768x576x12bpp YUV planar, 663552 bytes
[postproc @ 0x7b1a9f216040]using npp filters 0x7/0x7
A:   1.1 V:   0.8 A-V:  0.280 ct:  0.000   3/  3 ??% ??% ??,?% 3 6 
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[postproc @ 0x7b1a9f216040]using npp filters 0x7/0x3
A:   1.1 V:   0.9 A-V:  0.240 ct:  0.000   4/  4 ??% ??% ??,?% 4 5 
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x3
A:   1.1 V:   0.9 A-V:  0.200 ct:  0.000   5/  5 ??% ??% ??,?% 4 4 
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x2
A:   1.1 V:   0.9 A-V:  0.160 ct:  0.000   6/  6 ??% ??% ??,?% 5 3 
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x0
A:   1.1 V:   1.0 A-V:  0.120 ct:  0.000   7/  7 ??% ??% ??,?% 6 2 
[postproc @ 0x7b1a9f216040]using npp filters 0x2/0x0
A:   1.1 V:   1.0 A-V:  0.080 ct:  0.000   8/  8 ??% ??% ??,?% 6 1 
[postproc @ 0x7b1a9f216040]using npp filters 0x0/0x0
A:   1.1 V:   1.1 A-V:  0.040 ct:  0.000   9/  9 ??% ??% ??,?% 6 0 
[postproc @ 0x7b1a9f216040]using npp filters 0x0/0x0
A:   1.1 V:   1.1 A-V:  0.000 ct:  0.000  10/ 10 ??% ??% ??,?% 6 0 
[postproc @ 0x7b1a9f216040]using npp filters 0x0/0x0
A:   1.1 V:   1.1 A-V:  0.003 ct: -0.000  11/ 11 ??% ??% ??,?% 6 0 
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[postproc @ 0x7b1a9f216040]using npp filters 0x2/0x0
A:   1.2 V:   1.2 A-V:  0.005 ct: -0.000  12/ 12 ??% ??% ??,?% 6 1 
[postproc @ 0x7b1a9f216040]using npp filters 0x2/0x0
A:   1.2 V:   1.2 A-V:  0.008 ct: -0.001  13/ 13 ??% ??% ??,?% 6 1 
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x0
A:   1.3 V:   1.2 A-V:  0.091 ct:  0.003  14/ 14 165% 12%  9.8% 6 2 
[mp2float @ 0x7b1aa0474980]Got unexpected packet after EOF
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x2
A:   1.3 V:   1.2 A-V:  0.093 ct:  0.007  15/ 15 153% 11%  9.6% 6 3 
[postproc @ 0x7b1a9f216040]using npp filters 0x3/0x3
A:   1.3 V:   1.3 A-V:  0.096 ct:  0.011  16/ 16 143% 11%  9.3% 6 4 

...
#2352 fixed Document gmplayer file argument beastd jidanni@…
Description

http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html lacks the gmplayer file argument mentioned in https://trac.mplayerhq.hu/ticket/2351#comment:2

#2351 worksforme gmplayer could take a file argument ib jidanni@…
Description

gmplayer could take a file argument, just like mplayer does.

gmplayer ...[file|URL|playlist]
1 2 3 4 5 6 7 8 9 10 11

Query Language

query: TracLinks and the [[TicketQuery]] macro both use a mini “query language” for specifying query filters. Basically, the filters are separated by ampersands (&). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (|), meaning that the filter matches any of the values. To include a literal & or | in a value, escape the character with a backslash (\).

The available operators are:

= the field content exactly matches one of the values
~= the field content contains one or more of the values
^= the field content starts with one of the values
$= the field content ends with one of the values

All of these operators can also be negated:

!= the field content matches none of the values
!~= the field content does not contain any of the values
!^= the field content does not start with any of the values
!$= the field content does not end with any of the values

The date fields created and modified can be constrained by using the = operator and specifying a value containing two dates separated by two dots (..). Either end of the date range can be left empty, meaning that the corresponding end of the range is open. The date parser understands a few natural date specifications like "3 weeks ago", "last month" and "now", as well as Bugzilla-style date specifications like "1d", "2w", "3m" or "4y" for 1 day, 2 weeks, 3 months and 4 years, respectively. Spaces in date specifications can be left out to avoid having to quote the query string.

created=2007-01-01..2008-01-01 query tickets created in 2007
created=lastmonth..thismonth query tickets created during the previous month
modified=1weekago.. query tickets that have been modified in the last week
modified=..30daysago query tickets that have been inactive for the last 30 days

See also: TracTickets, TracReports, TracGuide

Last modified 4 years ago Last modified on Jul 6, 2015, 10:43:05 PM