Opened 18 years ago
Closed 18 years ago
#5144 closed enhancement (duplicate)
Make $USER magic variable accessible in TracQuery Expressions
Reported by: | kontakt at meitzner dot net | Owned by: | Matthew Good |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | report system | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Using TracQuery syntax it is easy and very user friendly to create new custom reports. However, in TracQuery Syntax there seems to be no way to use the magic $USER variable. Entering it in the "add new filter" Box as a username results in having the $ stripped, same happens when editing the Query. I have tried to escape the variable in many ways, but to no avail.
Maybe there could just be a tiny checkbox in the add-filter segment labeled "filter for logged-in user" or whatsoever. Or have the $USER-variable to be evaluated correctly if it is entered in a TracQuery Query. Otherwise it is very complicated sometimes (at least for me) to write complex SQL-Queries just to be able to use $USER.
Alternative: Give a way for the user to convert between TracQuery Syntax and SQL.
PS: I hope I have not missed an obvious way how this can already be done. If so, please point me in the right direction. Thanks!
See #1467.