Edgewall Software
Modify

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!

Attachments (0)

Change History (1)

comment:1 by Christian Boos, 18 years ago

Resolution: duplicate
Status: newclosed

See #1467.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matthew Good.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Matthew Good to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.