| Version 3 (modified by , 12 years ago) ( diff ) |
|---|
Trac Ticket Queries
Table of Contents
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.
Navigating Tickets
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.
Using TracLinks
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:
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:
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
- Plugin actions cannot be registered and put in the toolbar
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:
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 20841)
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 20841)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #24801 | irreproducible | Opening screen says I should update but Help > About says I have the latest stable version | ||
| Description |
What steps will reproduce the problem?I launch JOSM using a batch file which includes C:\Users\msdn\AppData\Local\Programs\OpenWebStart>start C:\Users\msdn\AppData\Local\Programs\OpenWebStart\javaws.exe "https://josm.openstreetmap.de/download/josm.jnlp" C:\Users\msdn\AppData\Local\Programs\OpenWebStart>
What is the expected result?Screen should not contain a "you should update" message What happens instead?Screen contains a "you should update" message. Please provide any additional information below. Attach a screenshot if possible.I did Help > About, which confirmed that I am using the same version as the stable release: [See screenshot] Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2026-03-28 20:28:41 +0100 (Sat, 28 Mar 2026) Revision:19555 Build-Date:2026-03-29 01:30:57 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (19555 en_GB) Windows 11 64-Bit OS Build number: Windows 10 Pro 25H2 (26200) Memory Usage: 584 MB / 16368 MB (204 MB allocated, but free) Java version: 21.0.11+10-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920x1080x32bpp@59Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: Cp1252 Locale info: en_GB Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Dicedtea-web.bin.location=%UserProfile%\AppData\Local\Programs\OpenWebStart\javaws, -Djava.util.Arrays.useLegacyMergeSort=true, -Djdk.http.auth.tunneling.disabledSchemes=, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=javafx.graphics/com.sun.javafx.application=ALL-UNNAMED, --add-exports=jdk.deploy/com.sun.deploy.config=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djava.security.manager=allow] Plugins: + HouseNumberTaggingTool (36474) + Mapillary (1819) + OpeningHoursEditor (36474) + PicLayer (273) + apache-commons (36474) + buildings_tools (36474) + photo_geotagging (36474) + photoadjust (36474) + reverter (36474) + terracer (36484) Last errors/warnings: - 00000.306 W: extended font config - overriding 'filename.Malgun_Gothic=malgun.ttf' with 'MALGUN.TTF' - 00000.307 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.307 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' |
|||
| #24800 | duplicate | MapRoulette plugin fails to download tasks. | ||
| Description |
Hello all! Here's a problem I've had on Mac on the latest version of JOSM with the MapRoulette plugin. Thanks in advance! What steps will reproduce the problem?
What is the expected result?The plugin downloads all of the MapRoulette tasks in the area. What happens instead?I get a popup that "An unexpected error occurred..." Please provide any additional information below. Attach a screenshot if possible.Revision:19555
Build-Date:2026-03-30 09:44:38
Identification: JOSM/1.5 (19555 en) Mac OS X 26.5.1
OS Build number: macOS 26.5.1 (25F80)
Memory Usage: 3008 MB / 73728 MB (1716 MB allocated, but free)
Java version: 21.0.10+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.themes.FlatMacDarkLaf
Screen: Display 1 1512x982x32bpp@120Hz (scaling 2.00×2.00)
Maximum Screen Size: 1512×982
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=19555, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=/Applications/Nix Apps/JOSM.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found
Plugins:
+ KartaView (545)
+ MapRoulette (84)
+ Mapillary (1819)
+ apache-commons (36474)
+ flatlaf (36474)
+ mapwithai (839)
+ openqa (116)
+ pmtiles (36474)
+ sidewalks (71)
+ todo (159)
+ utilsplugin2 (36497)
Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1
Map paint styles:
+ https://raw.githubusercontent.com/Yukiroshi/Clean-JOSM/refs/heads/main/Clean-JOSM.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1
Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/KeepRight&zip=1
Last errors/warnings:
- 00004.598 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.599 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.599 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.599 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.600 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.602 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00004.602 W: Removing 'areaStyle' pseudo-class. This class is only meant for validator
- 00011.670 E: java.io.IOException: stream is closed
- 00467.691 E: Failed to locate image 'mapmode/presets/transport/way/way_pedestrian.svg'
- 00468.569 E: Handled by bug report queue: org.openstreetmap.josm.tools.JosmRuntimeException: {}. Cause: org.openstreetmap.josm.io.IllegalDataException: {}
=== REPORTED CRASH DATA ===
TaskAPI#box:
- uri: https://maproulette.org/api/v2/tasks/box/-121.8917924/37.3558227/-121.8908536/37.3565519
Warning issued by: TaskAPI#box
=== STACK TRACE ===
Thread: main-worker-0 (40) of main
org.openstreetmap.josm.tools.JosmRuntimeException: {}
at org.openstreetmap.josm.plugins.maproulette.api.parsers.ClusteredPointParser.parseBounding(ClusteredPointParser.java:96)
at org.openstreetmap.josm.plugins.maproulette.api.parsers.ClusteredPointParser.parse(ClusteredPointParser.java:72)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
at org.eclipse.parsson.JsonParserImpl$1.tryAdvance(JsonParserImpl.java:203)
at java.base/java.util.Spliterator.forEachRemaining(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(Unknown Source)
at java.base/java.util.stream.ReferencePipeline.toArray(Unknown Source)
at org.openstreetmap.josm.plugins.maproulette.api.parsers.ClusteredPointParser.parse(ClusteredPointParser.java:48)
at org.openstreetmap.josm.plugins.maproulette.api.TaskAPI.box(TaskAPI.java:95)
at org.openstreetmap.josm.plugins.maproulette.actions.downloadtasks.MapRouletteDownloadTaskBox$DownloadTask.realRun(MapRouletteDownloadTaskBox.java:87)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.openstreetmap.josm.io.IllegalDataException: {}
at org.openstreetmap.josm.plugins.maproulette.api.parsers.GeometryParser.parseObject(GeometryParser.java:106)
at org.openstreetmap.josm.plugins.maproulette.api.parsers.GeometryParser.parseValue(GeometryParser.java:55)
at org.openstreetmap.josm.plugins.maproulette.api.parsers.ClusteredPointParser.parseBounding(ClusteredPointParser.java:94)
... 19 more
|
|||
| #24796 | wontfix | History Timeline - Entries are not being written to the database | ||
| Description |
Hello, There seems to be an issue in JOSM where, under certain conditions, an object's history is not preserved—for example, when two points are merged using the “m” command. Example: I merged point 11274726715 with point 11307147039 because the former had been mapped at the wrong location. This should have also written the history of point 11307147039, since its position was adopted. However, point 11274726715 contains the history of point 11307147039. Could you please check this and fix it? Thanks, Protoxenus |
|||
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


