wiki:

TracQuery


Version 1 (modified by trac, 6 years ago) (diff)

--

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.

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.

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 4786)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6274 invalid Error while running ffmpeg pnambiar
#6273 invalid Transport stream mp3 audio stream with 0 channels pbogdan
#6259 invalid mjpeg: Weird colorspace rr-
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 4786)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#6274 invalid Error while running ffmpeg pnambiar
Description
ffmpeg -i Attack_CloseUp_Day_Empty_1_2_1.mp4 -r 1/1 $filename%03d.bmp
ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
  configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.16.04.1 --build-suffix=-ffmpeg --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-libx264 --enable-libopencv --enable-version3 --disable-doc --disable-programs --disable-avdevice --disable-avfilter --disable-avformat --disable-avresample --disable-postproc --disable-swscale --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libvo_aacenc --enable-libvo_amrwbenc
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Attack_CloseUp_Day_Empty_1_2_1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf54.63.104
  Duration: 00:00:18.22, start: 0.099993, bitrate: 12362 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1920x1080 [SAR 1:1 DAR 16:9], 12359 kb/s, 29.97 fps, 29.97 tbr, 29972 tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[swscaler @ 0x792780] deprecated pixel format used, make sure you did set range correctly
Output #0, image2, to '%03d.bmp':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf56.40.101
    Stream #0:0(und): Video: bmp, bgr24, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.60.100 bmp
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> bmp (native))
Press [q] to stop, [?] for help
frame=    3 fps=0.0 q=-0.0 size=N/A time=00:00:03.00 bitrate=N/A dup=0 drop=54  frame=    6 fps=5.9 q=-0.0 size=N/A time=00:00:06.00 bitrate=N/A dup=0 drop=115 frame=    8 fps=5.2 q=-0.0 size=N/A time=00:00:08.00 bitrate=N/A dup=0 drop=181 frame=   10 fps=4.9 q=-0.0 size=N/A time=00:00:10.00 bitrate=N/A dup=0 drop=242 frame=   12 fps=4.7 q=-0.0 size=N/A time=00:00:12.00 bitrate=N/A dup=0 drop=304 frame=   14 fps=4.6 q=-0.0 size=N/A time=00:00:14.00 bitrate=N/A dup=0 drop=367 frame=   16 fps=4.5 q=-0.0 size=N/A time=00:00:16.00 bitrate=N/A dup=0 drop=428 frame=   18 fps=4.4 q=-0.0 size=N/A time=00:00:18.00 bitrate=N/A dup=0 drop=489 frame=   20 fps=4.6 q=-0.0 Lsize=N/A time=00:00:20.00 bitrate=N/A dup=0 drop=526    
video:121501kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
#6273 invalid Transport stream mp3 audio stream with 0 channels pbogdan
Description

Summary of the bug: Analysing a given .ts sample shows 0 channels in the second audio stream. Using MediaInfo? to analyse the given file shows a stereo channel layout.

Is the file corrupted or is this some kind of wired bug in ffmpeg?

The used sample can be downloaded here: https://www.dropbox.com/sh/8cl0nwjub12grv9/AACFVLDC99KH6xjjuq6yzRTUa?dl=0

Thanks in advance!

Best, pb

ffprobe output

ffprobe started on 2017-03-28 at 16:55:29
Report written to "ffprobe-20170328-165529.log"
Command line:
/Users/bogdan/ffmpeg/FFmpeg/ffprobe -report logan_mpeg2__mp3_0_channel_audio__4_unknown_stream.ts
ffprobe version N-84307-gfa8db3f Copyright (c) 2007-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: 
  libavutil      55. 50.100 / 55. 50.100
  libavcodec     57. 83.101 / 57. 83.101
  libavformat    57. 66.105 / 57. 66.105
  libavdevice    57.  3.100 / 57.  3.100
  libavfilter     6. 78.100 /  6. 78.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
[file @ 0x7ff7e9417260] Setting default whitelist 'file,crypto'
[mpegts @ 0x7ff7e9816c00] Format mpegts probed with size=2048 and score=50
[mpegts @ 0x7ff7e9816c00] stream=0 stream_type=2 pid=65 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=1 stream_type=3 pid=66 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=2 stream_type=3 pid=6a prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=3 stream_type=6 pid=69 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=4 stream_type=6 pid=98 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=5 stream_type=5 pid=96 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=6 stream_type=b pid=1c21 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=7 stream_type=b pid=1c33 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] stream=8 stream_type=5 pid=1c66 prog_reg_desc=
[mpegts @ 0x7ff7e9816c00] Before avformat_find_stream_info() pos: 0 bytes read:98304 seeks:1 nb_streams:9
[mpegts @ 0x7ff7e9816c00] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0x7ff7e9816c00] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0x7ff7e9816c00] parser not found for codec none, packets or times may be invalid.
[mpegts @ 0x7ff7e9816c00] parser not found for codec none, packets or times may be invalid.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpegts @ 0x7ff7e9816c00] probing stream 4 pp:2500
[mpegts @ 0x7ff7e9816c00] Probe with size=3456, packets=1 detected mp3 with score=51
[mpegts @ 0x7ff7e9816c00] probed stream 4
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpeg2video @ 0x7ff7e983ce00] Invalid frame dimensions 0x0.
[mpegts @ 0x7ff7e9816c00] PES packet size mismatch
[mpegts @ 0x7ff7e9816c00] PES packet size mismatch
[mpegts @ 0x7ff7e9816c00] start time for stream 2 is not set in estimate_timings_from_pts
[mpegts @ 0x7ff7e9816c00] PES packet size mismatch
[mpegts @ 0x7ff7e9816c00] PES packet size mismatch
[mpegts @ 0x7ff7e9816c00] stream 2 : no TS found at start of file, duration not set
[mpegts @ 0x7ff7e9816c00] Could not find codec parameters for stream 2 (Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x7ff7e9816c00] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x7ff7e9816c00] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x7ff7e9816c00] Could not find codec parameters for stream 7 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x7ff7e9816c00] Could not find codec parameters for stream 8 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x7ff7e9816c00] After avformat_find_stream_info() pos: 0 bytes read:3897288 seeks:4 frames:433
Input #0, mpegts, from 'logan_mpeg2__mp3_0_channel_audio__4_unknown_stream.ts':
  Duration: 00:00:04.39, start: 84600.931811, bitrate: 5691 kb/s
  Program 4164 
    Metadata:
      service_name    : BBC ONE Lon
      service_provider: 
    Stream #0:0[0x65], 98, 1/90000: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 704x576 [SAR 16:11 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x66](eng), 164, 1/90000: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6a](eng), 0, 1/90000: Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p (visual impaired)
    Stream #0:3[0x69](eng), 7, 1/90000: Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x98], 164, 1/90000: Audio: mp2 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16p, 128 kb/s
    Stream #0:5[0x96], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:6[0x1c21], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:7[0x1c33], 0, 1/90000: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:8[0x1c66], 0, 1/90000: Unknown: none ([5][0][0][0] / 0x0005)
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6
Unsupported codec with id 0 for input stream 7
Unsupported codec with id 0 for input stream 8
[AVIOContext @ 0x7ff7e9416d40] Statistics: 3897288 bytes read, 4 seeks

MediaInfo? output

$ mediainfo logan_mpeg2__mp3_0_channel_audio__4_unknown_stream.ts 
General
ID                                       : 4164 (0x1044)
Complete name                            : logan_mpeg2__mp3_0_channel_audio__4_unknown_stream.ts
Format                                   : MPEG-TS
File size                                : 2.98 MiB
Duration                                 : 3 s 780 ms
Start time                               : UTC 2017-03-01 23:20:43
End time                                 : UTC 2017-03-01 23:20:46
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 357 kb/s
Network name                             : London
Original network name                    : UK Digital Terrestrial Television
Country                                  : GBR / IRL
Timezone                                 : +00:00:00 / +00:00:00

Video
ID                                       : 101 (0x65)
Menu ID                                  : 4164 (0x1044)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : 2
Duration                                 : 3 s 400 ms
Bit rate mode                            : Variable
Bit rate                                 : 5 655 kb/s
Maximum bit rate                         : 15.0 Mb/s
Width                                    : 704 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Letterbox 16:9 image, with alternative 14:9 center
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.558
Stream size                              : 2.29 MiB (77%)

Audio #1
ID                                       : 102 (0x66)
Menu ID                                  : 4164 (0x1044)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 3 s 792 ms
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -512 ms
Stream size                              : 118 KiB (4%)
Language                                 : English

Audio #2
ID                                       : 152 (0x98)
Menu ID                                  : 4164 (0x1044)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Joint stereo
Codec ID                                 : 6
Duration                                 : 3 s 696 ms
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -408 ms
Stream size                              : 57.8 KiB (2%)

Text
ID                                       : 105 (0x69)
Menu ID                                  : 4164 (0x1044)
Format                                   : DVB Subtitle
Codec ID                                 : 6
Duration                                 : 1 s 550 ms
Delay relative to video                  : 2 s 448 ms
Language                                 : English
... ''cut output''
#6259 invalid mjpeg: Weird colorspace rr-
Description

Summary of the bug:

The JPEG file is rendered, but has weird colors (only chroma and no luma), and has weird aspect ratio. Firefox seems to decode the image correctly.

How to reproduce:

% ffmpeg 1383926217187.jpg

ffplay version 3.2.4 Copyright (c) 2003-2017 the FFmpeg developers
  built with gcc 6.3.1 (GCC) 20170109
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 34.101 / 55. 34.101
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.101 / 57. 56.101
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libavresample   3.  1.  0 /  3.  1.  0
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0   
[mjpeg @ 0x7f21540023a0] mjpeg: error, decode_app parser read over the end
Input #0, image2, from '/home/rr-/clutter/bad images/bad-colorspace/1383926217187.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: 21983 kb/s
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1280x720 [SAR 106:255 DAR 1696:2295], 25 tbr, 25 tbn, 25 tbc
[mjpeg @ 0x7f2154002a20] mjpeg: error, decode_app parser read over the end
[swscaler @ 0x7f214817ec60] deprecated pixel format used, make sure you did set range correctly


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